diff options
author | Sanmugasundaram K | 2015-01-07 17:01:47 +0530 |
---|---|---|
committer | Sanmugasundaram K | 2015-01-07 17:01:47 +0530 |
commit | 9a5a239295e7aae2d211c07c9fdb117cf8252e99 (patch) | |
tree | 7a73a4b54d7d6e17b13dba45530d8903e1add635 /spoken_auth/models.py | |
parent | b665812a483c9181aec47073223d950b5b04fa1e (diff) | |
download | FOSSEE-Forum-9a5a239295e7aae2d211c07c9fdb117cf8252e99.tar.gz FOSSEE-Forum-9a5a239295e7aae2d211c07c9fdb117cf8252e99.tar.bz2 FOSSEE-Forum-9a5a239295e7aae2d211c07c9fdb117cf8252e99.zip |
drupal_auth move to spoken_auth
Diffstat (limited to 'spoken_auth/models.py')
-rw-r--r-- | spoken_auth/models.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spoken_auth/models.py b/spoken_auth/models.py new file mode 100644 index 0000000..1992ed8 --- /dev/null +++ b/spoken_auth/models.py @@ -0,0 +1,13 @@ +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) + USERNAME_FIELD = 'username' + class Meta: + db_table = 'auth_user' |