Stop producing NullEnum
This commit is contained in:
parent
1fe3495e91
commit
d90e850265
|
@ -132,6 +132,7 @@ SPECTACULAR_SETTINGS = {
|
||||||
"OAUTH2_AUTHORIZATION_URL": "/authorize",
|
"OAUTH2_AUTHORIZATION_URL": "/authorize",
|
||||||
"OAUTH2_TOKEN_URL": "/api/v1/oauth/token/",
|
"OAUTH2_TOKEN_URL": "/api/v1/oauth/token/",
|
||||||
"PREPROCESSING_HOOKS": ["config.schema.custom_preprocessing_hook"],
|
"PREPROCESSING_HOOKS": ["config.schema.custom_preprocessing_hook"],
|
||||||
|
'ENUM_ADD_EXPLICIT_BLANK_NULL_CHOICE': False,
|
||||||
"ENUM_NAME_OVERRIDES": {
|
"ENUM_NAME_OVERRIDES": {
|
||||||
"FederationChoiceEnum": "funkwhale_api.federation.models.TYPE_CHOICES",
|
"FederationChoiceEnum": "funkwhale_api.federation.models.TYPE_CHOICES",
|
||||||
"ReportTypeEnum": "funkwhale_api.moderation.models.REPORT_TYPES",
|
"ReportTypeEnum": "funkwhale_api.moderation.models.REPORT_TYPES",
|
||||||
|
|
Loading…
Reference in New Issue