theatlantic / django-nested-admin

Django admin classes that allow for nested inlines
http://django-nested-admin.readthedocs.org/
Other
727 stars 101 forks source link

Manually updating sortable_field not being saved #225

Closed derblub closed 4 months ago

derblub commented 2 years ago

I've run into an issue, where users are trying to manually update the sortable_field, instead of drag and dropping the objects, which is not being saved. Instead, once the form-save is triggered, the values of the sortable_fields get reset to the initial value, as they are visible in the UI.

Is there any way to trigger a new sorting, once a sortable_field is manually updated?

fdintino commented 1 year ago

Sorry for the long delay in replying here: usually we just hide the sortable field. Is that not an option for you? Changing an order field is not very intuitive and it can be ambiguous as well (what should happen in a list of 3 items if the last one's sortable field is changed from 2 to 1, so that the items in the inline are now 0, 1, and 1?)