1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Use v3.0 enum naming

This commit is contained in:
jeremystretch
2021-06-25 14:11:41 -04:00
parent 3e0bcd58d4
commit 7a2a25c13a

View File

@ -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)
#