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

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

No files matched your search

+3 -3
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: