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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,20 +142,20 @@ Default: ``False``
142
142
# ]
143
143
144
144
145
-
``DJANGO_CHOICE_FIELD_ENUM_V3_NAMING``
145
+
``DJANGO_CHOICE_FIELD_ENUM_V2_NAMING``
146
146
--------------------------------------
147
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: ``{app_label}{object_name}{field_name}Choices``
148
+
Set to ``True`` to use the old naming format for the auto generated Enum types from Django choice fields. The old format looks like this: ``{object_name}_{field_name}``
149
149
150
150
Default: ``False``
151
151
152
152
153
153
``DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME``
154
-
--------------------------------------
154
+
----------------------------------------
155
155
156
156
Define the path of a function that takes the Django choice field and returns a string to completely customise the naming for the Enum type.
157
157
158
-
If set to a function then the ``DJANGO_CHOICE_FIELD_ENUM_V3_NAMING`` setting is ignored.
158
+
If set to a function then the ``DJANGO_CHOICE_FIELD_ENUM_V2_NAMING`` setting is ignored.
0 commit comments