#14513 closed (fixed)
Ordering Check in django/core/management/validation.py
Reported by: | Klaas van Schelven | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django/core/management/validation.py, both in the current trunk and in 1.2.3
It says in the accompanying comment:
# Skip ordering in the format field1__field2 (FIXME: checking # this format would be nice, but it's a little fiddly).
However, the actual check is for only one "_". Which leads fieldnames which contain underscores to not be checked for
ordering;
The patch would be something like this:
260c260 < if '__' in field_name: --- > if '_' in field_name:
I will go through some hoops to put up an actual patch here.
Attachments (1)
Change History (5)
by , 14 years ago
Attachment: | django-14513-e62b9ba4e02c.diff added |
---|
comment:1 by , 14 years ago
Has patch: | set |
---|
comment:2 by , 14 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
Tested, looks simple, marking for checkin.
comment:4 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
Patch