[Django] #37030: Added edge-case test coverage for admin changelist search and ordering

7 views
Skip to first unread message

Django

unread,
Apr 12, 2026, 11:08:16 AMApr 12
to django-...@googlegroups.com
#37030: Added edge-case test coverage for admin changelist search and ordering
-------------------------------------+-------------------------------------
Reporter: | Owner: Cyberpunk-San
Cyberpunk-San |
Type: | Status: assigned
Cleanup/optimization |
Component: Testing | Version: 6.0
framework |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
This contribution adds several edge-case tests to the admin_changelist
suite to ensure robustness in search, ordering, and filtering.

The new tests in tests/admin_changelist/tests.py cover:
1. Search validation with extremely long strings (10,000 characters).
2. Graceful handling of whitespace-only search queries.
3. Correct ordering behavior when integer fields (like 'age') contain NULL
values.
4. Proper filtering for Many-to-Many relationships when no associations
exist (empty/invalid ID).

All tests will pass against the main branch.
--
Ticket URL: <https://code.djangoproject.com/ticket/37030>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 12, 2026, 11:58:28 AMApr 12
to django-...@googlegroups.com
#37030: Added edge-case test coverage for admin changelist search and ordering
-------------------------------------+-------------------------------------
Reporter: San the cyberpunk | Owner: San the
Type: | cyberpunk
Cleanup/optimization | Status: closed
Component: Testing framework | Version: 6.0
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* resolution: => invalid
* status: assigned => closed

Comment:

Unless there's a specific problem at play here I don't think this is
necessary; we don't add tests for cases that not proven to be problematic.
--
Ticket URL: <https://code.djangoproject.com/ticket/37030#comment:1>
Reply all
Reply to author
Forward
0 new messages