0.18.7 - 2024-03-14
- Added new method
get_content()
toUploadedSVGFile
.
0.18.6 - 2024-03-04
- Fixed an issue with renaming a file.
0.18.5 - 2023-12-14
- In
ImageCollection
subclasses, you can set the file validators with the newVALIDATORS
attribute.
- Fixed an issue where it was impossible to delete all variations at once using
the
remove_variations
command.
0.18.4 - 2023-12-12
- Removed deprecated
Collection.items
field. - Fixed an issue with using deprecated
itemType
property.
0.18.1 - 2023-12-12
- Add missing migration.
0.18.0 - 2023-12-12
- Dropped support for Python 3.8.
- Dropped support for Django versions below 3.2.
- Added support for Python 3.12.
- Added support for Django 5.0.
- Removed deprecated
UnsupportedFileError
exception. - Removed deprecated
SizeValidator
. - Removed deprecated
FileResource.basename
property. - Removed deprecated
FileResource.get_file_url()
method. - Removed deprecated
FileResource.attach_file()
method. - Removed deprecated
FileResource._attach_file()
method. - Removed deprecated
FileResource.rename_file()
method. - Removed deprecated
FileResource._rename_file()
method. - Removed deprecated
CollectionItemBase.item_type
property. - Removed deprecated
CollectionItemBase.get_itemtype_field()
method. - Removed deprecated
CollectionFileItemBase.file_supported()
method. - Removed deprecated
itemType
key fromCollectionItemBase.as_dict()
output.
- In
ImageCollection
subclasses, you can set the file storage path with the newUPLOAD_TO
attribute. - The
--field
parameter in therecreate_variations
andremove_variations
management commands is an alias for the--item-type
parameter. - Now, parameters for the
recreate_variations
andremove_variations
management commands can be positional. Example:python3 recreate_variations app.Page background -- desktop mobile
- The behavior of
Ctrl+Z
has been fixed when executing management commands.
0.17.1 - 2023-11-07
- Added the
srcset
field for image resources. - Removed the automatic selection of the "[All]" option in the dialogs for
the
recreate_variations
andremove_variations
management commands.
- Fixed a bug where the number of selected items in a collection was not properly included in the deletion confirmation message.
0.17.0 - 2023-10-08
- Added new
mimetype
field.
0.16.2 - 2023-09-26
- Upscaling is now forced enabled for
2x
,3x
and4x
versions.
0.16.1 - 2023-09-20
- Set
default_auto_field
todjango.db.models.BigAutoField
.
0.16.0 - 2023-09-10
- Remove Python 3.7 support.
check_uploads
andclean_uploads
are now checks existence of the reference from the owner to the resource.
0.15.1 - 2023-04-23
- Migrate to CSS grids.
0.15.0 - 2023-04-16
- Remove Python 3.6 support.
- Minimum required
paper-admin
version is now6.0.0
.
0.14.1 - 2023-02-03
- Bind collection widget to
collection--default
CSS-class.
0.14.0 - 2023-01-09
- Add support for
paper-admin
>= 5.0. - Increase default value of
min-age
parameter forclean_uploads
andremove_empty_collections
commands.
0.13.0 - 2022-10-26
- Added
ResourceQuerySet
and inner classResourceMeta
.
0.12.0 - 2022-10-10
- Added
ratio
andhw_ratio
image properties.
0.11.5 - 2022-10-10
- Improved management commands.
0.11.4 - 2022-08-15
- Added default choice for some prompts in management commands.
- Fixed
remove_variations
management command.
0.11.3 - 2022-08-15
- Updated dependencies.
0.11.2 - 2022-07-03
- Fixed
Class constructors cannot be invoked without 'new'
error.
0.11.1 - 2022-07-03
- Fixed some typos.
0.11.0 - 2022-06-02
- Removed
cloudinary
submodule. - Removed
file
parameter fromvariation_created
signal. Addedname
parameter instead. CollectionModelNotFoundError
andCollectionItemNotFoundError
exceptions have been added.- Added
UnsupportedCollectionItemError
exception.
ContentType.objects.get_for_id()
method has been used to get rid of redundant SQL queries.- The
get_file_field()
method is now a classmethod. - A new
concrete_collection_content_type
field was added to theCollection
andCollectionItemBase
models. - The
Collection.get_items()
now works properly not only with the proxy collection models, but also with corresponding concrete model. - Field
Collection.items
is now deprecated.
- Fixed an issue where
remove_empty_collections
command deletes non-empty collections. - Fixed an issue where
create_missing_variations
command skips some instaces.
0.10.0 - 2022-05-23
- The minimum supported version of
paper-admin
is increased from 3.0 to 4.1.0.
0.9.3 - 2022-05-20
- Migrate to
paper-uploader
npm package.
0.9.2 - 2022-05-19
- Export
Uploader
class. It can be accessed viawindow.paperUploads.Uploader
.
0.9.1 - 2022-04-15
- Update
npm
dependencies.
0.9.0 - 2022-03-26
- Added
SVGFileField
.
0.8.2 - 2022-03-25
- Fixed an issue where file descriptor offset was not reset before
prepare()
call.
0.8.1 - 2022-02-22
- Fixed an issue with serialization.
0.8.0 - 2022-02-21
- Changed default values
FILES_UPLOAD_TO
,IMAGES_UPLOAD_TO
,COLLECTION_FILES_UPLOAD_TO
andCOLLECTION_IMAGES_UPLOAD_TO
settings.
- Added field checks for
upload_to
parameter. - Added new
FileFieldResource.generate_filename()
method.
0.8.0rc4 - 2022-02-21
- Added new method
Collection.get_last_modified()
. - Add an ability to specify
storage
andupload_to
for particular fields. - The
basename
field has been renamed toresource_name
. - Management commands rewritten.
- Added
create_missing_variations
management command. - Method
get_file_url()
is now deprecated.
- Fix a not creation variations with non-filesystem storages.
0.8.0rc3 - 2022-02-02
- Method
set_owner_from()
has been rewritten and renamed toset_owner_field()
. - Note:
paper_uploads.cloudinary
will be moved to a separate package.
SizeValidator
is now deprecated in favor ofMaxSizeValidator
.- Allow
str
andPath
as the parameter ofattach()
method. - Allow overriding variation name with option
name
.
- Fixed
remove_variations
andrecreate_variations
management commands.
0.8.0rc2 - 2022-02-01
- Add Django 4.0 support
- Add Python 3.10 support
- Fixed infinite recursion when a collection model was removed, but the corresponding
ContentType
remains.
0.8.0rc1 - 2021-11-22
- Mixin
BacklinkModelMixin
has been moved fromResource
class toUploadedFile
,UploadedImage
andCollectionBase
. This update will removeowner_XXX
fields from collection items. Runmakemigrations
andmigrate
commands to apply the change to your data. - Field
CollectionItem.item_type
is now deprecated in favor oftype
. - Management commands rewritten.
- Removed
COLLECTION_IMAGE_ITEM_PREVIEW_VARIATIONS
setting.
- Added
change_form_class
property toUploadedFile
andUploadedImage
. This field can be used to specify a custom dialog form for a given model. - Disabled implicit
content_type
filtration for concrete collection models. - Added composite index for collection items on
collection_id
andcollection_content_type
fields. FileResource
's methodget_basename()
has been renamed toget_caption()
.FileWidgetBase
has been renamed toFileResourceWidgetBase
.FileUploaderWidgetMixin
has been renamed toDisplayFileLimitationsMixin
.admin.base.UploadedFileBase
has been renamed toResourceAdminBase
.UploadedFileBaseForm
has been renamed toChangeFileResourceDialogBase
.UploadedFileDialog
has been renamed toChangeUploadedFileDialog
.UploadedImageDialog
has been renamed toChangeUploadedImageDialog
.FileItemDialog
has been renamed toChangeFileItemDialog
.ImageItemDialog
has been renamed toChangeImageItemDialog
.- Changed some admin URLs for collections.
- Added new
InvalidItemType
exception. - Deleted
FileNotFoundError
exception.
- Implement
__iter__()
forCollectionBase
. - Method
.attach_file()
is now deprecated in favor of.attach()
. - Method
.rename_file()
is now deprecated in favor of.rename()
. - Method
.file_supported()
is now deprecated in favor of.accept()
. - Exception
UnsupportedFileError
is now deprecated in favor ofUnsupportedResource
. - Added an ability to override the
admin_preview
variation forImageItem
viaVARIATIONS
property. - Updated view classes for easier customization.
rename_file()
will userecut_async()
when supported.
- Fixed caption update for collection items.
0.7.0 - 2021-11-09
- Add an ability to override parent link field for collection item models inherited
from an abstract class (e.g.,
FileItemBase
,ImageItemBase
). - Added new method
set_owner_from()
. - Added new method
Collection.get_item_model()
.
0.6.3 - 2021-11-06
- Add abstract base classes for collection items.
- Fixed image recut with
python-rq
. - Fixed
RecursionError
when deleting a collection.
0.6.2 - 2021-11-02
- New
remove_empty_collections
management command.
- Support explicit cascading deletion with
FileField
andImageField
.
0.6.1 - 2021-10-20
- Add an ability to override admin model's views.
0.6.0 - 2021-09-10
- Removed
CloudinaryCollection
class.
- Add a method
get_file_folder
returning storage directory. Override this method to customize the upload folder.
- Fix
RecursionError
when deleting ImageCollection.
0.5.2 - 2021-09-03
- Scale
max_width
andmax_height
for Retina versions.
0.5.1 - 2021-08-25
- Make it possible to rename files with the same name.
- Add an ability to override
type
andresource_type
options for Cloudinary fields. - Switch from Travis CI to GitHub Actions.
- Update npm dependencies.
0.5.0 - 2021-07-10
- Drop support for Django versions before 2.2.
- Requires
paper-admin
>= 3.0. - Migrate from
fine-uploader
todropzone.js
. - Removed default permissions from all Django models.
- Collection previews has been reduced from
192x148
to180x135
.
- Added Python 3.9 support.
- Added
remove_variations
management command. - The
recreate_variations
management command has been completely rewritten.
0.4.5 - 2020-10-26
- Add
cloudinary/helpers.py
file
0.4.4 - 2020-10-19
- Fix missing templates
0.4.3 - 2020-10-19
- Fix model checks
0.4.2 - 2020-10-19
- Fix missing static files
0.4.0 - 2020-09-04
- Rewritten from scratch
- Added
CLOUDINARY_TYPE
setting - Added
CLOUDINARY_TEMP_DIR
setting - Rename
CLOUDINARY
setting toCLOUDINARY_UPLOADER_OPTIONS
- Rename
ItemField
toCollectionItem
- Rename
MimetypeValidator
toMimeTypeValidator
- Signal
variation_created
was added - Migrate to DropBox's checksum realization
- Remove postprocessing
- Upgrade development environment