File tree Expand file tree Collapse file tree 8 files changed +22
-10
lines changed
Expand file tree Collapse file tree 8 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 2121# args: [--target-version, "2.2"]
2222
2323 - repo : https://github.com/PyCQA/flake8
24- rev : 7.1.0
24+ rev : 7.1.1
2525 hooks :
2626 - id : flake8
2727
Original file line number Diff line number Diff line change 22CHANGELOG
33=========
44
5+ 3.2.3 (2024-09-18)
6+ ==================
7+
8+ * fix: Use TypeVar for type-hinting of the user parameter by @payamnj in https://github.com/django-cms/django-filer/pull/1496
9+
10+ ** New contributor**
11+
12+ * @payamnj made their first contribution in https://github.com/django-cms/django-filer/pull/1496
13+
14+
5153.2.2 (2024-09-09)
616==================
717
Original file line number Diff line number Diff line change 1313 8. Publish the release and it will automatically release to pypi
1414"""
1515
16- __version__ = '3.2.2 '
16+ __version__ = '3.2.3 '
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ if (django.jQuery) {
2929 var infoMessage = $ ( '.js-filer-dropzone-info-message' ) ;
3030 var hiddenClass = 'hidden' ;
3131 var maxUploaderConnections = uploadButton . data ( 'max-uploader-connections' ) || 3 ;
32+ var maxFilesize = parseInt ( uploadButton . data ( 'max-filesize' ) || 0 , 10 ) * 1048576 ;
3233 var hasErrors = false ;
3334 var updateUploadNumber = function ( ) {
3435 uploadNumber . text ( maxSubmitNum - submitNum + '/' + maxSubmitNum ) ;
@@ -59,6 +60,7 @@ if (django.jQuery) {
5960 action : uploadUrl ,
6061 button : uploadButton [ 0 ] ,
6162 maxConnections : maxUploaderConnections ,
63+ sizeLimit : maxFilesize ,
6264 onSubmit : function ( id ) {
6365 Cl . mediator . remove ( 'filer-upload-in-progress' , removeButton ) ;
6466 Cl . mediator . publish ( 'filer-upload-in-progress' ) ;
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ <h2> </h2>
213213 data-url ="{% url 'admin:filer-ajax_upload' folder_id=folder.id %} "
214214 data-max-uploader-connections ="{{ uploader_connections }} "
215215 data-max-files ="{{ max_files|safe }} "
216- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %}
216+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %}
217217 >
218218 {% trans "Upload Files" %}
219219 </ a >
@@ -223,7 +223,7 @@ <h2> </h2>
223223 data-url ="{% url 'admin:filer-ajax_upload' %} "
224224 data-max-uploader-connections ="{{ uploader_connections }} "
225225 data-max-files ="{{ max_files|safe }} "
226- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %}
226+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %}
227227 >
228228 {% trans "Upload Files" %}
229229 </ a >
Original file line number Diff line number Diff line change 44 < table class ="js-filer-dropzone js-filer-dropzone-base navigator-table " id ="result_list " data-url ="{% if folder.id %}{% url 'admin:filer-ajax_upload' folder_id=folder.id %}{% else %}{% url 'admin:filer-ajax_upload' %}{% endif %} " data-folder-name ="{% if folder.is_root %}{% translate 'Unsorted Uploads' %}{% else %}{{ folder.name }}{% endif %} "
55 data-max-uploader-connections ="{{ uploader_connections }} "
66 data-max-files ="{{ max_files|safe }} "
7- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
7+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
88 < thead >
99 < tr >
1010 < th class ="column-checkbox ">
170170 data-folder-name ="{% if folder.is_root %}{% trans 'Unsorted Uploads' %}{% else %}{{ folder.name }}{% endif %} "
171171 data-max-uploader-connections ="{{ uploader_connections }} "
172172 data-max-files ="{{ max_files|safe }} "
173- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
173+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
174174
175175 < div class ="icon "> < span class ="filer-icon filer-upload fa fa-cloud-upload "> </ span > </ div >
176176
Original file line number Diff line number Diff line change 44
55 < div class ="js-filer-dropzone js-filer-dropzone-base navigator-list " id ="result_list " data-url ="{% if folder.id %}{% url 'admin:filer-ajax_upload' folder_id=folder.id %}{% else %}{% url 'admin:filer-ajax_upload' %}{% endif %} " data-folder-name ="{% if folder.is_root %}{% translate 'Unsorted Uploads' %}{% else %}{{ folder.name }}{% endif %} " data-max-uploader-connections ="{{ uploader_connections }} "
66 data-max-files ="{{ max_files|safe }} "
7- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
7+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
88
99 < input type ="checkbox " id ="all-items-action-toggle ">
1010
4343 data-folder-name ="{{ subfolder.name }} "
4444 data-max-uploader-connections ="{{ uploader_connections }} "
4545 data-max-files ="{{ max_files|safe }} "
46- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
46+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
4747
4848 < div class ="navigator-checkbox ">
4949 {% if filer_admin_context.pick_folder and item.file_type == 'Folder' %}
146146 data-folder-name ="{% if folder.is_root %}{% trans 'Unsorted Uploads' %}{% else %}{{ folder.name }}{% endif %} "
147147 data-max-uploader-connections ="{{ uploader_connections }} "
148148 data-max-files ="{{ max_files|safe }} "
149- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
149+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
150150 < div class ="icon "> < span class ="filer-icon filer-icon-upload fa fa-cloud-upload "> </ span > </ div >
151151
152152 < div class ="filer-dropzone-upload-welcome js-filer-dropzone-upload-welcome ">
Original file line number Diff line number Diff line change 1717 < div class ="js-filer-dropzone filer-dropzone{% if object %} js-object-attached{% endif %} "
1818 data-url ="{% url 'admin:filer-ajax_upload' %} "
1919 data-max-files ="1 "
20- {% if max_filesize %}} data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
20+ {% if max_filesize %}data-max-filesize ="{{ max_filesize|safe }} "{% endif %} >
2121 < div class ="z-index-fix "> </ div >
2222 < div class ="dz-default dz-message js-filer-dropzone-message{% if object %} hidden{% endif %} ">
2323 < span class ="icon filer-icon filer-icon-arrow-down fa fa-arrow-down "> </ span > < span > {% translate "or drop your file here" %}</ span >
You can’t perform that action at this time.
0 commit comments