From d90e8502652bd6d7d6c20df955ce0aeeec855cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Tue, 19 Jul 2022 02:02:37 +0200 Subject: [PATCH] Stop producing NullEnum --- api/config/settings/local.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/config/settings/local.py b/api/config/settings/local.py index 37eac1903..668434542 100644 --- a/api/config/settings/local.py +++ b/api/config/settings/local.py @@ -132,6 +132,7 @@ SPECTACULAR_SETTINGS = { "OAUTH2_AUTHORIZATION_URL": "/authorize", "OAUTH2_TOKEN_URL": "/api/v1/oauth/token/", "PREPROCESSING_HOOKS": ["config.schema.custom_preprocessing_hook"], + 'ENUM_ADD_EXPLICIT_BLANK_NULL_CHOICE': False, "ENUM_NAME_OVERRIDES": { "FederationChoiceEnum": "funkwhale_api.federation.models.TYPE_CHOICES", "ReportTypeEnum": "funkwhale_api.moderation.models.REPORT_TYPES",