from rest_framework.authentication import TokenAuthentication from xenua.django.rest.models import Token class TokenAuth(TokenAuthentication): model = Token