Release history of django-admin-sortable2
- Folder
testapp
is not published on PyPI anymore.
- Fix: In combination with django-nested-admin integration fails with an error in inlien formsets.
- Yanked.
- Add support for Django-4.2.
- Fix: In
SortableInlineAdminMixin.get_fields()
, convert potential tuple to list in order to append extra elements.
- Fix: It not is not possible anymore, to move items beyond the last item, i.e. after an empty extra rows for new items or even after the row with the "Add another chapter" link.
- Fix #328: Replace
uglify
againstterser
to minify JavaScript files.
- Fix #320: Adding Jinja2 as template engine didn't work because it is unable to handle file references using
pathlib.Path
.
- Enlarge top/down buttons on top of header of
SortableTabularInline
.
- Introduce classes
adminsortable2.admin.SortableStackedInline
andadminsortable2.admin.SortableTabularInline
to resort items to the begin or end of the list of those inlines. - Add support for Django-4.1.
- Fix: When using an
InlineAdmin
with a self defined form, the default ordering has been ignored. - Fix: Skip instance check, if model used in an
InlineAdmin
is a proxy model.
- Fix #309: Prevent JavaScrip error when using *InlineAdmin without sortable list view.
- Internally use Python's
pathlib
instead ofos.path
. - In DEBUG mode, load unminimized JavaScript.
- Fix #304: ModelAdmin not inheriting from SortableAdminMixin prevented sortable Stacked-/TabluraInlineAdmin be sortable.
- Fix #303: Use CSRF-Token from input field rather than from Cookie.
- Fix #302:
Django's ManifestStaticFilesStorage references missing file
adminsortable2.js.map
.
- Drop support for Django 3.2 and lower.
- Replace jQuery-UI's sortable against Sortable.js.
- Use TypeScript instead of JavaScript for all client side code.
- Remove all extended Django admin templates: This allows a smoother upgrade for future Django versions.
- New feature: Select multiple rows and drag them to a new position.
- Fix #294:
issue in 1.0.3 where
install_requires
unintentionally dropped Django 2.2
- Adding support for Django 4 and Python 3.10.
- Fix regression introduced in 1.0.1, adding double item rows on SortableInlineAdminMixin and TabularInline.
- Fix CSS classes change introduced in Django-2.1.
- Prepared to run on Django-4.0.
- Ditch Travis-CI in favor of GitHub Actions.
- Drop support for Python-2.7, 3.4 and 3.5.
- Drop support for Django-1.10, 1.11, 2.0 and 2.1.
- Add Python-3.9 to the testing matrix.
- Refactor code base to clean Python-3 syntax.
- Fix #207: Last item not displayed in stacked- and tabular inline admins, if model doesn't have add permission.
- Add support for Django-3.1.
- Fix #241: Move items when the order column is not first.
- Fix #242: Bulk move when sorting order is descending.
- Fix #243: Bulk move to last page when it is too small.
- Refactor aggregates to use Coalasce for empty querysets.
- Add support for Django-3.0.
- Fix #208:
Correctly apply custom css classes from the
InlineModelAdmin.classes
attribute then usingStackedInline
.
- Fix #220:
If model admin declares
list_display_links = None
, no link is autogenerated for the detail view.
- Fully adopted and tested with Django-2.2
- Fix issue with JavaScript loading in Django-2.2.
- Add support for Django-2.0 and Django-2.1.
- Drop support for Django-1.9 and lower.
- Check for changed function signature in Django-2.1.
- Added jQuery compatibility layer for Django-2.1.
- Dysfunctional.
- Fix #183:
Use
mark_safe
for reorderdiv
.
- Fix: Method
adminsortable2.admin.SortableInlineAdminMixin.get_fields
always return a list instead of sometimes a tuple.
- #171: Adhere to Content Security Policy best practices by removing inline scripts.
- Adopted to Django-2.0 keeping downwards compatibility until Django-1.9.
- Better explanation what to do in case of sorting inconsistency.
- Fixes #137: Allow standard collapsible tabular inline.
- Fix #164:
TypeError when
display_list
in admin contains a callable. - Fix #160:
Updated ordering values not getting saved in
TabluarInlineAdmin
/StackedInlineAdmin
.
- Fix #162:
In model admin, setting
actions
toNone
or[]
breaks the sortable functionality.
- Fix #159: Make stacked inline's header more clear that it is sortable.
- Fix #155: Sortable column not the first field by default.
- Fix #147:
Use current admin site name instead of
admin
. - Fix #122: Columns expand continuously with each sort.
- Fix #139: Better call of post_save signal.
- Fix #135: Better call of pre_save signal.
- On
./manage.py reorder ...
, name the model usingapp_label.model_name
rather than requiring the fully qualified path. - In
adminsortable2.admin.SortableAdminMixin
renamed methodupdate
toupdate_order
, to prevent potential naming conflicts.
- Add class
PolymorphicSortableAdminMixin
so that methodget_max_order
references the ordering field from the base model.
- Fix: Drag'n Drop reordering now send [pre|post]_save signals for all updated instances.
- Fix: Reorder management command now accepts args.
- Drop support for Django-1.5.
change_list_template
now is extendible.- Fixed concatenation if
exclude
is tuple. - Support reverse sorting in CustomInlineFormSet.
- Setup.py ready for Python 3.
- Fixed regression from 0.6.0: Multiple sortable inlines are now possible again.
- Removed global variables from Javascript namespace.
- Compatible with Django 1.9.
- In the list view, it now is possible to move items to any arbitrary page.
- Changed the namespace from
adminsortable
toadminsortable2
to allow both this project and django-admin-sortable to co-exist in the same project. This is helpful for projects to transition from one to the other library. It also allows existing projects's migrations which previously relied on django-admin-sortable to continue to work.
- Fix #42: Sorting does not work when ordering is descending.
- Use property method
media()
instead of hard codedMedia
class. - Use the
verbose_name
from the column used to keep the order of fields instead of a hard coded "Sort". - When updating order in change_list_view, use the CSRF protection token.
- Fixed issue #25:
admin.TabularInline
problem in Django 1.5.x - Fixed problem when adding new Inline Form Fields.
- PEP8 cleanup.
- Support for Python-3.3.
- Fixed: Add list-sortable.js on changelist only. Issue #31.
- Fixed: StackedInlines do not add an empty field after saving the model.
- Added management command to preset initial ordering.
- Refactored documentation for Read-The-Docs
- Fixed: MethodType takes only two attributes
- Fixed: Unsortable inline models become draggable when there is a sortable inline model
- Bulk actions are added only when they make sense.
- Fixed bug when clicking on table header for ordering field.
- Fix CustomInlineFormSet to allow customization.
- Distinction between different versions of jQuery in case django-cms is installed side by side.
- Added sortable stacked and tabular inlines.
- Fixed: All field names other than "order" are now allowed.
- Fixed compatibility issue when used together with django-cms.
- First version published on PyPI.
- First working release.