summaryrefslogtreecommitdiff
path: root/spoken_auth/models.py
diff options
context:
space:
mode:
authorSanmugasundaram K2015-01-07 17:01:47 +0530
committerSanmugasundaram K2015-01-07 17:01:47 +0530
commit9a5a239295e7aae2d211c07c9fdb117cf8252e99 (patch)
tree7a73a4b54d7d6e17b13dba45530d8903e1add635 /spoken_auth/models.py
parentb665812a483c9181aec47073223d950b5b04fa1e (diff)
downloadFOSSEE-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.py13
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'