I have several configuration objects in django
admin panel.
They are listed in the following order
Each object can be configured separately, but all of them are included in General config
. So basically you will need mostly General config
, so I want to move it to the top.
I know how to order fields in a model itself, but how to reorder models?
So I've just wrote a django package that will allow you reorder django app list/ rename app label and model names (including 3rd party apps) — you can download it from here:
https://github.com/mishbahr/django-modeladmin-reorder
If you don't mind using a dirty trick, prepend verbose_name_plural
of your models with a certain number of invisible zero-width spaces. E.g. prepend "Email config" with 1 zero-width space, "General config" with 2 and "Network config" with 3. This is really the simplest method and I've yet to find any shortcomings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With