jeremystretch 4 лет назад
Родитель
Сommit
7a2a25c13a
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      netbox/netbox/settings.py

+ 11 - 0
netbox/netbox/settings.py

@@ -496,6 +496,17 @@ REST_FRAMEWORK = {
 }
 
 
+#
+# Graphene
+#
+
+GRAPHENE = {
+    # Avoids naming collision on models with 'type' field; see
+    # https://github.com/graphql-python/graphene-django/issues/185
+    'DJANGO_CHOICE_FIELD_ENUM_V3_NAMING': True,
+}
+
+
 #
 # drf_yasg (OpenAPI/Swagger)
 #