diff options
| author | maddrum <maddrum9@gmail.com> | 2024-10-26 14:46:46 +0300 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-10-30 16:21:57 +0100 |
| commit | b50d1a020d3a988ab9f45724138943dc807c5ecc (patch) | |
| tree | 7dad82a5634f769c8fdbc9076f0726368f796d6f /docs/internals/contributing | |
| parent | 3a8f52fbc6fe2ff646a2da4165497d82117e4a92 (diff) | |
Fixed #35866 -- Clarified the positioning Python magic methods on models in the internal style guide.
Diffstat (limited to 'docs/internals/contributing')
| -rw-r--r-- | docs/internals/contributing/writing-code/coding-style.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt index c1838b77a3..20605aef56 100644 --- a/docs/internals/contributing/writing-code/coding-style.txt +++ b/docs/internals/contributing/writing-code/coding-style.txt @@ -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 |
