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
770 stars 181 forks source link

Inline Drag&Drop broken on Django Unfold #403

Closed raayu83 closed 3 months ago

raayu83 commented 3 months ago

Hello,

when using this app together with Django Unfold, the Inline sorting function is broken: If you drag an entry, only the title part is dragged, the dropdown part is ignored and stays in the old place.

I'm not that deep into JavaScript, but if you can give me some hints what I need to look into I'd be willing to give it a try to fix this issue.

In case it is important, my Inline Class signature is like this:

class MyInline(unfold.admin.TabularInline, adminsortable2.admin.SortableStackedInline)

Tabularinline needs to be first, otherwise the styling is broken.

jrief commented 3 months ago

Duplicate of #398

raayu83 commented 3 months ago

I'd not exactly call this a duplicate... #398 is about styling issues, this is about a functional bug.