Several teams at voiio use Django admin every day. Most of its users are not engineers.
It is a wonderful tool, but after years of adding models, fields, and inlines, some things become annoying. Too many clicks to find a record, too much scrolling to change a setting.
I spend a lot of time there too, checking records and investigating bugs, so here are a few things I wanted to improve.
Jump to a model or record
I tried django-command-palette and liked it. It had an annoying bug that was spamming Sentry, but otherwise worked fine. I reported it and submitted a fix, but got no response.
I often opened a model's list with Cmd+K, then added the record ID to the URL by hand. I already knew which record I needed, so why not go there directly?
So I made django-cmdbar. Now I can type user#42 and open that record.
I thought only power users would use this, but our non-technical colleagues liked it more than I expected.
Press / to search
This one is tiny, but I use it all the time. On admin list pages, we added / to focus the search field.
We also changed the placeholder so people can discover it:
Type "/" to search
I can press / and start typing without reaching for the mouse.
django-admin-keyshortcuts was another inspiration here, if you are interested in more keyboard shortcuts for the admin.
Split long detail forms into tabs
One of our admin forms had grown to around 8–10 inlines. Finding one setting involved enough scrolling to count as exercise.
So we recently grouped related fields and inlines into tabs, inspired by django-tabbed-admin2. A couple of admin classes and a JavaScript snippet were enough to build our own version.
It is still the same form with the usual save button, but we spend less time scrolling.
After we added tabs to our heaviest admin page, staff members asked us to do the same for other long admin pages.
Next: tell environments apart
Another idea I liked: a proposal to use different admin colors when DEBUG=True. When several browser tabs show the same admin in different environments, it is quite easy to edit something in the wrong one.
I haven't tried this yet, but I'd like to make our environments easier to tell apart.
I like Django admin a lot. And since it is another Django app, we can change the parts that annoy us. If your team spends hours there every day, it is worth spending some time making it better.
Found this useful or enjoyed it?
Say thanks on social media or find other ways to support my work.