farridav / django-jazzmin

Jazzy theme for Django
https://django-jazzmin.readthedocs.io
MIT License
1.6k stars 282 forks source link

Issue with django-admin-sortable2 #503

Open anonymousti opened 1 year ago

anonymousti commented 1 year ago

When using Jazzmin with admin-sortable2 I'm not able to drag and drop the cards. I was wondering if someone had the same issue and if there is a way to fix it or any kind of alternative to have the inline sortable.

jamesgilmorelyst commented 6 months ago

Hi @anonymousti. I've not used admin-sortable2 before, but you can order inlines using jazzmin_section_order

Kkiirra commented 1 month ago

Hello! I know it's late, but I'll leave this here.

First, make sure you've added adminsortable2 to your INSTALLED_APPS.

And also, very IMPORTANT: Jazzmin does not work with adminsortable when you are using a custom template. Try removing the following line from your Admin class:

change_list_template = 'admin/product/change_list.html'

As well as any other similar lines like editable, sortable, and everything will work!