#30798 closed Bug (fixed)
models.E015 is raised when Meta.ordering contains "pk" of a related field.
| Reported by: | Mariusz Felisiak | Owned by: | Hasan Ramezani |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 3.0 |
| Severity: | Release blocker | Keywords: | |
| Cc: | Hasan Ramezani | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
models.E015 is raised when Meta.ordering contains __pk of a related field, e.g.:
test_app.SomeModel: (models.E015) 'ordering' refers to the nonexistent field, related field, or lookup 'option__pk'.
Regression in 440505cb2cadbe1a5b9fba246bcde6c04f51d07e.
Attachments (1)
Change History (7)
by , 6 years ago
| Attachment: | test-30798.diff added |
|---|
comment:1 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Thanks @felixxm for the test. I will prepare a fix for it.
Note:
See TracTickets
for help on using tickets.
Regression test.