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

Order within group #333

Open bbekir opened 1 year ago

bbekir commented 1 year ago

In some cases sorting is not on a per-table basis. Especially if ordering field is something like item no, question no

There may be a meta field that shows grouping partition, like as

ordering=('item_no') order_group=('category')

And update on db may be done with adding extra where filter;

where category= :category

Yet, in that case user have to filter data first than drag and drop. Or some movements may be forbidden to prevent conflicts like user can't drag multiple rows within different order_group, etc

jrief commented 1 year ago

Will do that on my next major release.