diff --git a/django/db/models/enums.py b/django/db/models/enums.py index 20e9e77925..24bec6b87b 100644 --- a/django/db/models/enums.py +++ b/django/db/models/enums.py @@ -98,6 +98,7 @@ class IntegerChoices(int, Choices): class TextChoices(str, Choices): """Class for creating enumerated string choices.""" + @staticmethod def _generate_next_value_(name, start, count, last_values): return name