django-rest-auth/dj_rest_auth/models.py
2020-02-29 23:56:21 -06:00

7 lines
210 B
Python

from django.conf import settings
from rest_framework.authtoken.models import Token as DefaultTokenModel
# Register your models here.
TokenModel = getattr(settings, 'REST_AUTH_TOKEN_MODEL', DefaultTokenModel)