diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/enums.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/enums.py b/django/db/models/enums.py index f48143ddaf..51821a2b45 100644 --- a/django/db/models/enums.py +++ b/django/db/models/enums.py @@ -31,6 +31,7 @@ class ChoicesMeta(enum.EnumMeta): # that is passed in as "self" as the value to use when looking up the # label in the choices. cls.label = property(lambda self: cls._value2label_map_.get(self.value)) + cls.do_not_call_in_templates = True return enum.unique(cls) def __contains__(cls, member): |
