blob: b315b2d4071a01ffc9c86d856043f1e76f12729b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
#from drupal_auth.managers import DrupalUserManager
class Users(AbstractBaseUser):
id = models.IntegerField(primary_key=True)
username = models.CharField(max_length=100L, unique=True)
email = models.CharField(max_length=100L, unique=True)
USERNAME_FIELD = 'username'
class Meta:
db_table = 'auth_user'
|