mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-28 12:03:43 +03:00
11 lines
269 B
Python
11 lines
269 B
Python
from django.conf import settings
|
|
|
|
from rest_framework.authtoken.models import Token as DefaultTokenModel
|
|
|
|
from .utils import import_callable
|
|
|
|
# Register your models here.
|
|
|
|
TokenModel = import_callable(
|
|
getattr(settings, 'REST_AUTH_TOKEN_MODEL', DefaultTokenModel))
|