django-rest-auth/dj_rest_auth/models.py

11 lines
269 B
Python
Raw Normal View History

2016-01-01 00:10:52 +03:00
from django.conf import settings
from rest_framework.authtoken.models import Token as DefaultTokenModel
from .utils import import_callable
2014-04-30 23:52:05 +04:00
# Register your models here.
2016-01-01 00:10:52 +03:00
TokenModel = import_callable(
getattr(settings, 'REST_AUTH_TOKEN_MODEL', DefaultTokenModel))