﻿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
15979	backwards related query set of a model object, not yet saved, returns ALL db objects instead of an empty list.	anonymous	nobody	"Following relationships ""backward""
[[BR]]
Example:
[[BR]]
b = Blog.objects.get(id=1)
[[BR]]
b.entry_set.all() # Returns all Entry objects related to Blog.
[[BR]]

So far so good.
[[BR]]
[[BR]]
But notice something quite scary here. If you do:
[[BR]]
newblog = Blog(name='my-new-blog', tag_line='testing')   # this is a new Blog obj that has not been saved yet.
[[BR]]
newblog.entry_set.all()                                  # '''This will return ALL Entry objects in db, instead of an empty list, or just exception.'''
[[BR]]
I think the returned value should be an empty list.


"	Bug	closed	Documentation	1.3	Normal	duplicate			Unreviewed	0	0	0	0	0	0
