jrief / django-admin-sortable2

Generic drag-and-drop ordering for objects in the Django admin interface
https://django-admin-sortable2.readthedocs.io/en/latest/
Other
753 stars 179 forks source link

The updating of unique fields now also work in MariDB and MySQL #339

Closed gabn88 closed 1 year ago

gabn88 commented 1 year ago

See https://docs.djangoproject.com/en/4.1/ref/models/querysets/#ordered-queryset

I think it could be added to the notes :)

jrief commented 1 year ago

But in version 2 the sorting is done on the client anyway, so only the order field has to be updated with that data.

In version 1, this indeed was an issue.