mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed #20777 -- Admin proxy model deletion regression
Added proxy_models tests by Harm Geerts <github@geertswei.nl>.
This commit is contained in:
parent
4668c142dc
commit
3844089edc
7 changed files with 67 additions and 8 deletions
|
|
@ -500,9 +500,9 @@ using ``__str__()`` like this::
|
|||
.. method:: Model.__eq__()
|
||||
|
||||
The equality method is defined such that instances with the same primary
|
||||
key value and the same concrete class are considered equal. The term
|
||||
concrete class means proxy model's first non-proxy parent or the class
|
||||
itself if it isn't a proxy class.
|
||||
key value and the same concrete class are considered equal. For proxy
|
||||
models, concrete class is defined as the model's first non-proxy parent;
|
||||
for all other models it is simply the model's class.
|
||||
|
||||
For example::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue