mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-02 05:43:44 +03:00
use import_callable() to correctly import classes in REST_AUTH_REGISTER_PERMISSION_CLASSES
This commit is contained in:
parent
33fbff3ea3
commit
8fa6fc59ce
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user