mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-06-29 00:53:03 +03:00
Replaced tabs with spaces
This commit is contained in:
parent
d76b685c36
commit
b926291fdc
|
@ -1,12 +1,12 @@
|
|||
from django.conf import settings
|
||||
|
||||
if getattr(settings, 'REST_USE_KNOX', False):
|
||||
try:
|
||||
try:
|
||||
from knox.models import AuthToken as DefaultTokenModel
|
||||
except ImportError:
|
||||
raise ImportError("Install django-rest-knox to use REST_USE_KNOX = True")
|
||||
else:
|
||||
from rest_framework.authtoken.models import Token as DefaultTokenModel
|
||||
from rest_framework.authtoken.models import Token as DefaultTokenModel
|
||||
|
||||
from .utils import import_callable
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user