1
0
mirror of https://github.com/django/django.git synced 2025-02-28 19:44:35 +00:00
Anssi Kääriäinen 6af05e7a0f Fixed model.__eq__ and __hash__ for no pk value cases
The __eq__ method now considers two instances without primary key value
equal only when they have same id(). The __hash__ method raises
TypeError for no primary key case.

Fixed #18864, fixed #18250

Thanks to Tim Graham for docs review.
2013-08-22 17:24:07 +03:00
..
2013-08-16 20:12:10 +02:00
2013-06-29 11:58:36 +02:00