Browse Source

Fixed #35866 -- Clarified the positioning Python magic methods on models in the internal style guide.

maddrum 5 months ago
parent
commit
b50d1a020d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/internals/contributing/writing-code/coding-style.txt

+ 1 - 1
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