1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Made Model.__eq__ consider proxy models equivalent

Fixed #11892, fixed #16458, fixed #14492.
This commit is contained in:
Anssi Kääriäinen
2013-08-07 09:51:32 +03:00
parent 4090982617
commit 4668c142dc
7 changed files with 60 additions and 1 deletions

View File

@@ -194,6 +194,11 @@ Miscellaneous
removes the ability for visitors to generate spurious HTTP 500 errors by
requesting static files that don't exist or haven't been collected yet.
* The :meth:`django.db.models.Model.__eq__` method is now defined in a
way where instances of a proxy model and its base model are considered
equal when primary keys match. Previously only instances of exact same
class were considered equal on primary key match.
Features deprecated in 1.7
==========================