1
0
mirror of https://github.com/django/django.git synced 2025-02-15 11:58:44 +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-03-22 13:50:07 -04:00
2013-03-22 13:50:07 -04:00
2013-08-13 11:16:30 -05:00
2013-03-28 15:03:19 -05:00
2013-08-13 11:16:30 -05:00
2013-08-13 11:16:30 -05:00