From b50d1a020d3a988ab9f45724138943dc807c5ecc Mon Sep 17 00:00:00 2001 From: maddrum Date: Sat, 26 Oct 2024 14:46:46 +0300 Subject: [PATCH] Fixed #35866 -- Clarified the positioning Python magic methods on models in the internal style guide. --- docs/internals/contributing/writing-code/coding-style.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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