﻿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
18250	Comparing two unsaved model objects	yrdnsa@…	Yarden	"if i do this:

User(email=""exmple@example.com"") == User(email=""exmple22@example22.com"")

it will return True!

but if i save them- it will return False.
this is because the __eq__ magic method tries to compare their PK's. if no pk it will return None. so None == None...

django.db.models.base line 383
def __eq__"	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed	compare model	moritz.sichert@…	Accepted	0	0	0	0	0	0
