mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Fixed #35866 -- Clarified the positioning Python magic methods on models in the internal style guide.
This commit is contained in:
parent
3a8f52fbc6
commit
b50d1a020d
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ Model style
|
||||||
* All database fields
|
* All database fields
|
||||||
* Custom manager attributes
|
* Custom manager attributes
|
||||||
* ``class Meta``
|
* ``class Meta``
|
||||||
* ``def __str__()``
|
* ``def __str__()`` and other Python magic methods
|
||||||
* ``def save()``
|
* ``def save()``
|
||||||
* ``def get_absolute_url()``
|
* ``def get_absolute_url()``
|
||||||
* Any custom methods
|
* Any custom methods
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue