#14581 closed (duplicate)
__isnull=False not working for one to one relationships
Reported by: | sircco | Owned by: | Daishiman |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | pscyopg2 | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I am using psycopg2 backend
A.fillter(B__isnull=False)[0].B throws DoesNotExist exception
Change History (5)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|
comment:2 by , 14 years ago
Please post a fully reproducible example. If you can't spend a few minutes to do it right and instead post a one liner with a typo in it (fillter instead of filter) and undefined "A" and "B", why would anyone spend much more time to reproduce it and come up with a fix for it ?
comment:3 by , 14 years ago
Owner: | changed from | to
---|
comment:4 by , 14 years ago
milestone: | → 1.3 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
This ticket is a duplicate of #13815.
Note:
See TracTickets
for help on using tickets.
Corrected formatting.