0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/tests/basic
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
..
__init__.py
models.py Fixed #20278 -- ensured .get() exceptions do not recurse infinitely 2013-05-20 18:50:40 +03:00
tests.py Fixed model.__eq__ and __hash__ for no pk value cases 2013-08-22 17:24:07 +03:00