The Wire · Showcase
DJANGO ADMIN TIGHTENS SORT CONTROLS, FIXES DOCUMENTATION DEBT
By RepoJournal · Filed · About Django
Django plugged a UX bug where unordered __str__ columns showed sort controls they shouldn't, while the docs team stripped redundant widget guidance.
The admin got sharper this cycle. A fix landed that prevents sort controls from appearing on __str__ columns and GenericForeignKey fields, which were never orderable in the first place [1]. The change limits implicit sorting to actual model fields, blocking false affordances without breaking legitimate related-field sorting. On the docs front, redundant choice widget documentation came down [2], consolidating overlapping guidance into the Select.choices reference where it lives in the actual API docs. Coverage workflows also tightened up [3], with the PR number now retrieved directly instead of pulled from artifacts, eliminating a spoofing surface. The django-docker-box image build workflow got refactored [4], moving generated settings files out of the work tree to prevent dirty state on repeated runs, though this requires a rebuild for existing users.
One email a day. Unsubscribe in one click.
Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review the sort control fix if you customize admin column headers django/django [monitor]
- → Rebuild django-docker-box images if you use docker-box for local development django/django-docker-box [plan]
References
- [1] Fixed #37233 -- Prevented sort controls for unordered __str__ admin columns. ↗ django/django
- [2] Fixed #37194 -- Removed redundant choice widget documentation. django/django
- [3] Removed PR number artifact from coverage comment workflows. django/django
- [4] Move generated settings file out of worktree ↗ django/django-docker-box