django-rest-auth/dj_rest_auth/models.py

5 lines
200 B
Python
Raw Normal View History

2016-01-01 00:10:52 +03:00
from django.conf import settings
from django.utils.module_loading import import_string
2016-01-01 00:10:52 +03:00
TokenModel = import_string(getattr(settings, 'REST_AUTH_TOKEN_MODEL', 'rest_framework.authtoken.models.Token'))