You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/settings.rst
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -140,3 +140,32 @@ Default: ``False``
140
140
# 'messages': ['This field is required.'],
141
141
# }
142
142
# ]
143
+
144
+
145
+
``DJANGO_CHOICE_FIELD_ENUM_V3_NAMING``
146
+
--------------------------------------
147
+
148
+
Set to ``True`` to use the new naming format for the auto generated Enum types from Django choice fields. The new format looks like this: ``DjangoModel{app_label}{object_name}{field_name}Choices``
149
+
150
+
Default: ``False``
151
+
152
+
153
+
``DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME``
154
+
--------------------------------------
155
+
156
+
Set to a function that takes the Django choice field and returns a string to completely customise the naming for the Enum type.
157
+
158
+
If set to a function then the ``DJANGO_CHOICE_FIELD_ENUM_V3_NAMING`` setting is ignored.
0 commit comments