﻿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
24772	Equality testing of deferred instances	Josh Kupershmidt	nobody	"I find this behavior quite surprising and unintuitive:

{{{
a = MyModel.objects.get(id=1)
b = MyModel.objects.defer('hugefield').get(id=1)
a == b # False
}}}

Tested on 1.6.3, though AFAICT the behavior should be the same in git master. I notice I'm [https://stackoverflow.com/questions/3617886/django-queryset-defer-problem-bug-or-feature not the only one] who has gotten tripped up by this behavior. I haven't seen any comments suggesting this behavior is intentional, so I'm guessing it's an accident of how Model.!__eq!__ is implemented and how deferred instances get a new class, rather than a conscious choice.

Is there support for changing this behavior so that a would equal b in this example?"	Bug	closed	Database layer (models, ORM)	dev	Normal	invalid			Unreviewed	0	0	0	0	0	0
