mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-14 05:06:33 +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))
|