Skip to content

Commit a7a010a

Browse files
authored
add v1 and v2 to the openapi spec (#2637)
1 parent 01e296b commit a7a010a

File tree

3 files changed

+5271
-1
lines changed

3 files changed

+5271
-1
lines changed

main/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@
10051005
"TEST_REQUEST_DEFAULT_FORMAT": "json",
10061006
"DEFAULT_VERSIONING": "rest_framework.versioning.NamespaceVersioning",
10071007
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
1008-
"ALLOWED_VERSIONS": ["v0"],
1008+
"ALLOWED_VERSIONS": ["v0", "v1", "v2"],
10091009
}
10101010

10111011
# Relative URL to be used by Djoser for the link in the password reset email

0 commit comments

Comments
 (0)