mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #35866 -- Clarified the positioning Python magic methods on models in the internal style guide.
This commit is contained in:
@@ -417,7 +417,7 @@ Model style
|
||||
* All database fields
|
||||
* Custom manager attributes
|
||||
* ``class Meta``
|
||||
* ``def __str__()``
|
||||
* ``def __str__()`` and other Python magic methods
|
||||
* ``def save()``
|
||||
* ``def get_absolute_url()``
|
||||
* Any custom methods
|
||||
|
||||
Reference in New Issue
Block a user