Skip to content

v2.0.1

Compare
Choose a tag to compare
@dzhuang dzhuang released this 14 Jul 16:35
  • Breaking changes (#25 , #28):

    • Added required method :meth:create_instance_from_form in ImageCreateView when customizing target_model .

    • Added required method :meth:create_cropped_instance_from_form in ImageCropView when customizing target_model .

    • Allowed customize image URL via :meth:get_image_url in target_model.

    • Allowed customize image Crop URL via :meth:get_crop_url in target_model.

    • Allowed customize image object serialization by :meth:serialize_extra in target_model.

    • Bundled most static assets (except Bootstrap and jQuery) into galleryfield-ui.js, thus we no longer need to
      do extra configurations serving those static files locally.

      • Added option bootstrap_version in DJANGO_GALLERY_FIELD_CONFIG, defaults to 3.
      • Removed all items in DJANGO_GALLERY_FIELD_CONFIG["assets"] except extra_js and extra_css.
      • Added new options jquery, bootstrap_css and bootstrap_js to DJANGO_GALLERY_FIELD_CONFIG["assets"], with
        CDN URL of those assets as default values.
    • Dropped jQuery-UI in favor of SortableJS for sorting uploaded images. Added jquery_file_upload_ui_sortable_options in DJANGO_GALLERY_FIELD_CONFIG .

    • Allowed use Bootstrap 4 and 5 via settings configurations.