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

Fixing redeclaration of rest framework settings

parent c7ddbe24
No related branches found
No related tags found
1 merge request!152Fixing redeclaration of rest framework settings
Pipeline #100450 failed
...@@ -98,6 +98,13 @@ REST_FRAMEWORK = { ...@@ -98,6 +98,13 @@ REST_FRAMEWORK = {
), ),
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",), "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema", "DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
# Rate limit settings of invite endpoint
"DEFAULT_THROTTLE_CLASSES": [
"rest_framework.throttling.AnonRateThrottle",
],
"DEFAULT_THROTTLE_RATES": {
"anon": "100/day",
},
} }
SPECTACULAR_SETTINGS = { SPECTACULAR_SETTINGS = {
...@@ -293,15 +300,6 @@ INTERNAL_RK_PREFIX = "no.{instance}.greg".format(instance=INSTANCE_NAME) ...@@ -293,15 +300,6 @@ INTERNAL_RK_PREFIX = "no.{instance}.greg".format(instance=INSTANCE_NAME)
FEIDE_SOURCE = "feide" 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 # Used by the OU import from orgreg to distinguish the OuIdentifiers from others
......
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