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
776 stars 180 forks source link

Question: Is there a way to Hook into the saving endpoint? #297

Closed selected-pixel-jameson closed 2 years ago

selected-pixel-jameson commented 2 years ago

Is there a specified way of triggering an additional event to happen when the order is changed?

For example lets say I want to update all of the models that are related to the item which I just changed the order on.

jrief commented 2 years ago

Is there a specified way of triggering an additional event to happen when the order is changed?

You mean on the server, or on the client?

selected-pixel-jameson commented 2 years ago

I actually just realized it appropriately triggers the post_save signal, so I'm able to tie into the action this way.

Thank you!