diff --git a/backend/backend/settings.py b/backend/backend/settings.py index b8d79deeb..0d3e24d58 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -14,6 +14,7 @@ import dotenv from django.core.management.utils import get_random_secret_key from rest_framework import viewsets +from rest_framework.settings import api_settings django_stubs_ext.monkeypatch(extra_classes=(viewsets.ModelViewSet,)) dotenv.load_dotenv() @@ -157,3 +158,6 @@ "VERSION": "0.1.0", "SERVE_INCLUDE_SCHEMA": False, } + +# Workaround #471 / monkeypatch() is overriding the REST_FRAMEWORK dict. +api_settings.reload()