farridav / django-jazzmin

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

[Feature Request] Reorder and custom grouping of Models in Sidebar #337

Open ghost opened 3 years ago

ghost commented 3 years ago

When dealing with apps with a large number of Models, it would be helpful to be able to group models under custom app groups (similar to formsets for fields in ModelAdmin). It is also helpful if we could customise the order of the models as well.

There exists already a project that offers that functionality : django-modeladmin-reorder. However, it doesn't play nice with jazzmin.

I'd like to see this option implemented in jazzmin as new feature. It seems to be middleware that modifies the ordering without requiring new models unlike other projects. Or should I extend and make changes to my jazzmin to ensure it works well with it?

fahmiSD commented 1 year ago

i know it's late, however... u can add this to settings.py in jazzmin configuration..

"order_with_respect_to": ["auth", "books"],