Closed michelematera closed 2 years ago
Please read how to report bugs.
After that, if you point the browser on
http://localhost:8000/admin/testapp/sortablebook3/17/change/
you get a demo with a TabularInline
.
Please report bugs based on that demo.
The bug occurs when SortableBookAdmin does not inherit SortableAdminMixin. In this case I am unable to sort UnorderedSortableBookAdmin.
fixed in version 2.0.3
The bug was not fixed. Up to version 1.0.4 it was not necessary to inherit SortableAdminMixin to SortableBookAdmin to sort the inlines. This is a big limitation.
The parent admin class now must inherit from SortableAdminBase
in order to make inlines sortable. The alternative would be to override the templates, something I definitely do not want to do. Why is that a big limitation for you?
Forgive me, I hadn't read about SortableAdminBase. Actually from my point of view it would be more convenient to insert everything in SortableInlineAdminMixin as initially there was up to 1.0.4 but that's okay too. Thanks
Actually from my point of view it would be more convenient to insert everything in SortableInlineAdminMixin as initially there was up to 1.0.4
yes, that would be nice. Unfortunately the API designed around Django-4.0 doesn't offer this out of the box. The alternative would have been to continue overriding templates tabular.html and stacked.html as required until version 1.0.4.
I hope you agree, that the current solution is less error-prone and future-safe.
After updating to 2.0, the drag and drop button no longer appears in TabularInline. Downgrading to 1.0.4 everything works fine.
I am using Django==4.0.3.