# -*- coding: utf-8 -*-

from django.contrib.auth.models import AbstractBaseUser

from .reldb import * # NOQA
from .nonrel import * # NOQA
from .keyval import * # NOQA


class SimpleUser(AbstractBaseUser):
    # No need of username, we have the email…
    #username = models.CharField(max_length=254, unique=True, db_index=True)

    email = models.EmailField(max_length=254, unique=True, db_index=True)

    USERNAME_FIELD = 'email'

# -*- coding: utf-8 -*-

from .reldb import * # NOQA
from .nonrel import * # NOQA
from .keyval import * # NOQA

clean obsolete code.