Opened 8 years ago

Closed 8 years ago

Last modified 7 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: master
Severity: Keywords: pscyopg2
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 Changed 8 years ago by Alex Gaynor

Description: modified (diff)

Corrected formatting.

comment:2 Changed 8 years ago by George Sakkis

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 Changed 8 years ago by Daishiman

Owner: changed from nobody to Daishiman

comment:4 Changed 8 years ago by Daishiman

milestone: 1.3
Resolution: duplicate
Status: newclosed

This ticket is a duplicate of #13815.

comment:5 Changed 7 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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