diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2013-08-14 11:05:01 +0300 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2013-08-22 17:24:07 +0300 |
| commit | 6af05e7a0f0e4604d6a67899acaa99d73ec0dfaa (patch) | |
| tree | de9bc5025ba6062a3ff71cb234c6e0c84a9daf9c /tests/admin_scripts/complex_app/models | |
| parent | 768bbf3efe0c412bced1e865e90139a0f07dc613 (diff) | |
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.
Diffstat (limited to 'tests/admin_scripts/complex_app/models')
0 files changed, 0 insertions, 0 deletions
