Skip to content
Snippets Groups Projects
Commit 3034f6f5 authored by Tore.Brede's avatar Tore.Brede
Browse files

Merge branch 'fix_swagger_not_loading' into 'master'

Fixing redeclaration of rest framework settings

See merge request !152
parents b39d576f f52d2b3f
No related branches found
No related tags found
1 merge request!152Fixing redeclaration of rest framework settings
Pipeline #100462 passed
......@@ -98,6 +98,13 @@ REST_FRAMEWORK = {
),
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
# Rate limit settings of invite endpoint
"DEFAULT_THROTTLE_CLASSES": [
"rest_framework.throttling.AnonRateThrottle",
],
"DEFAULT_THROTTLE_RATES": {
"anon": "10/minute",
},
}
SPECTACULAR_SETTINGS = {
......@@ -293,16 +300,6 @@ INTERNAL_RK_PREFIX = "no.{instance}.greg".format(instance=INSTANCE_NAME)
FEIDE_SOURCE = "feide"
# Rate limit settings of invite endpoint
REST_FRAMEWORK = {
"DEFAULT_THROTTLE_CLASSES": [
"rest_framework.throttling.AnonRateThrottle",
],
"DEFAULT_THROTTLE_RATES": {
"anon": "100/day",
},
}
# Used by the OU import from orgreg to distinguish the OuIdentifiers from others
ORGREG_SOURCE = "orgreg"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment