Fix: backwards-compatible versioned API response for custom field select fields (#8912)

This commit is contained in:
shamoon
2025-01-27 07:34:23 -08:00
committed by GitHub
parent 082bf6fb8e
commit 270e70a958
8 changed files with 245 additions and 22 deletions

View File

@@ -341,10 +341,10 @@ REST_FRAMEWORK = {
"rest_framework.authentication.SessionAuthentication",
],
"DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.AcceptHeaderVersioning",
"DEFAULT_VERSION": "1",
"DEFAULT_VERSION": "7",
# Make sure these are ordered and that the most recent version appears
# last
"ALLOWED_VERSIONS": ["1", "2", "3", "4", "5", "6"],
# last. See api.md#api-versioning when adding new versions.
"ALLOWED_VERSIONS": ["1", "2", "3", "4", "5", "6", "7"],
}
if DEBUG: