1
0
mirror of https://github.com/django/django.git synced 2024-11-20 08:24:58 +00:00
django/docs/ref/models
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
..
fields.txt Documentation - Noted that OneToOneField doesn't respect unique. 2013-08-20 21:20:29 -07:00
index.txt Fixed #14141: docs now use the :doc: construct for links between documents. 2010-08-19 19:27:44 +00:00
instances.txt Fixed model.__eq__ and __hash__ for no pk value cases 2013-08-22 17:24:07 +03:00
options.txt Removed versionadded/changed annotations for 1.5 2013-08-19 09:09:41 -04:00
querysets.txt Removed versionadded/changed annotations for 1.5 2013-08-19 09:09:41 -04:00
relations.txt Fixed #17528 -- Documented that add() and remove() with a many-to-many relationship do not call Model.save() 2013-07-12 06:19:16 -04:00