mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-29 12:23:43 +03:00
12 lines
354 B
Python
12 lines
354 B
Python
|
from django.conf import settings
|
||
|
|
||
|
from rest_auth.registration.serializers import (
|
||
|
RegisterSerializer as DefaultRegisterSerializer)
|
||
|
from ..utils import import_callable
|
||
|
|
||
|
|
||
|
serializers = getattr(settings, 'REST_AUTH_REGISTER_SERIALIZERS', {})
|
||
|
|
||
|
RegisterSerializer = import_callable(
|
||
|
serializers.get('REGISTER_SERIALIZER', DefaultRegisterSerializer))
|