From 8fa6fc59ce8483c900085d8501c23143e3378c55 Mon Sep 17 00:00:00 2001 From: Mahmoud Adel Date: Fri, 21 Aug 2020 01:02:09 +0200 Subject: [PATCH] use import_callable() to correctly import classes in REST_AUTH_REGISTER_PERMISSION_CLASSES --- dj_rest_auth/registration/app_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dj_rest_auth/registration/app_settings.py b/dj_rest_auth/registration/app_settings.py index bbc7075..f0b6c62 100644 --- a/dj_rest_auth/registration/app_settings.py +++ b/dj_rest_auth/registration/app_settings.py @@ -13,5 +13,5 @@ RegisterSerializer = import_callable(serializers.get('REGISTER_SERIALIZER', Defa def register_permission_classes(): permission_classes = [AllowAny, ] for klass in getattr(settings, 'REST_AUTH_REGISTER_PERMISSION_CLASSES', tuple()): - permission_classes.append(klass) + permission_classes.append(import_callable(klass)) return tuple(permission_classes)