v2.0.1
-
-
Added required method :meth:
create_instance_from_form
inImageCreateView
when customizingtarget_model
. -
Added required method :meth:
create_cropped_instance_from_form
inImageCropView
when customizingtarget_model
. -
Allowed customize image URL via :meth:
get_image_url
intarget_model
. -
Allowed customize image Crop URL via :meth:
get_crop_url
intarget_model
. -
Allowed customize image object serialization by :meth:
serialize_extra
intarget_model
. -
Bundled most static assets (except
Bootstrap
andjQuery
) intogalleryfield-ui.js
, thus we no longer need to
do extra configurations serving those static files locally.- Added option
bootstrap_version
inDJANGO_GALLERY_FIELD_CONFIG
, defaults to3
. - Removed all items in
DJANGO_GALLERY_FIELD_CONFIG["assets"]
exceptextra_js
andextra_css
. - Added new options
jquery
,bootstrap_css
andbootstrap_js
toDJANGO_GALLERY_FIELD_CONFIG["assets"]
, with
CDN URL of those assets as default values.
- Added option
-
Dropped
jQuery-UI
in favor ofSortableJS
for sorting uploaded images. Addedjquery_file_upload_ui_sortable_options
inDJANGO_GALLERY_FIELD_CONFIG
. -
Allowed use
Bootstrap
4 and 5 via settings configurations.
-