#9926 closed (fixed)
Nullable FK to inherited model excludes results when using .select_related()
| Reported by: | Adam Gomaa | Owned by: | Malcolm Tredinnick |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Patch to the query regression test demonstrating the problem is attached. I'm pretty lost on getting a fix; it's in some hairy query code.
Present in 1.0 and trunk.
Attachments (1)
Change History (7)
by , 17 years ago
| Attachment: | 2008-12-29-select-related-subclass-null.patch added |
|---|
comment:1 by , 17 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 17 years ago
| milestone: | → 1.1 |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 17 years ago
comment:4 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:5 by , 17 years ago
Note:
See TracTickets
for help on using tickets.
This looks similar to #9041. One of these could probably be marked a dupe.