mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 14:04:02 +03:00
481ae69df3
Move authentication tests to sub-app to enable this.
11 lines
298 B
Python
11 lines
298 B
Python
# coding: utf-8
|
|
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.db import models
|
|
|
|
|
|
class CustomToken(models.Model):
|
|
key = models.CharField(max_length=40, primary_key=True)
|
|
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
|