﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19089	Incorrect reverse one-to-one lookup on unsaved objects	Aymeric Augustin	nobody	"Let's assume two models, `A` and `B`. `A` has a nullable one-to-one relation to `B`.

Let's create a single instance of `A` in the database, with no related `B` (`a.b_id = None`).

Now let's instanciate a `B` without saving it (`b.id = None`).

At this point, `b.a` incorrectly returns the instance of a created above -- because it's the only `A` with `a.b_id == b.id`. `b.a` should raise `A.DoesNotExist` instead."	Bug	closed	Database layer (models, ORM)	1.4	Normal	duplicate			Unreviewed	1	0	0	0	0	0
