django-rest-auth/rest_auth/models.py
2016-01-02 15:59:06 -02:00

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))