Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#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 Alex Gaynor)

I am using psycopg2 backend

A.fillter(B__isnull=False)[0].B throws DoesNotExist exception

Change History (5)

comment:1 by Alex Gaynor, 14 years ago

Description: modified (diff)

Corrected formatting.

comment:2 by George Sakkis, 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 Daishiman, 13 years ago

Owner: changed from nobody to Daishiman

comment:4 by Daishiman, 13 years ago

milestone: 1.3
Resolution: duplicate
Status: newclosed

This ticket is a duplicate of #13815.

comment:5 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top