django-rest-auth/dj_rest_auth/models.py

9 lines
212 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
2014-04-30 23:52:05 +04:00
# Register your models here.
2016-01-01 00:10:52 +03:00
2020-03-01 05:30:21 +03:00
TokenModel = getattr(settings, 'REST_AUTH_TOKEN_MODEL', DefaultTokenModel)