<filename>accounts/models.py
import uuid
from django.contrib import auth
from django.db import models

auth.signals.user_logged_in.disconnect(auth.models.update_last_login)

class User(models.Model):
    email = models.EmailField(primary_key=True)
    REQUIRED_FIELDS = ()
    USERNAME_FIELD = 'email'

    def is_authenticated(self):
        return True

class Token(models.Model):
    email = models.EmailField()
    uid = models.CharField(default=uuid.uuid4,max_length=40)

<filename>accounts/models.py
import uuid
from django.contrib import auth
from django.db import models

auth.signals.user_logged_in.disconnect(auth.models.update_last_login)

class User(models.Model):
    email = models.EmailField(primary_key=True)
    REQUIRED_FIELDS = ()
    USERNAME_FIELD = 'email'

    def is_authenticated(self):
        return True

class Token(models.Model):
    email = models.EmailField()
    uid = models.CharField(default=uuid.uuid4,max_length=40)
