summaryrefslogtreecommitdiff
path: root/drupal_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 /drupal_auth/models.py
parentb665812a483c9181aec47073223d950b5b04fa1e (diff)
downloadspoken-tutorial-forums-9a5a239295e7aae2d211c07c9fdb117cf8252e99.tar.gz
spoken-tutorial-forums-9a5a239295e7aae2d211c07c9fdb117cf8252e99.tar.bz2
spoken-tutorial-forums-9a5a239295e7aae2d211c07c9fdb117cf8252e99.zip
drupal_auth move to spoken_auth
Diffstat (limited to 'drupal_auth/models.py')
-rw-r--r--drupal_auth/models.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/drupal_auth/models.py b/drupal_auth/models.py
deleted file mode 100644
index 5161d65..0000000
--- a/drupal_auth/models.py
+++ /dev/null
@@ -1,38 +0,0 @@
-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(models.Model):
- id = models.BigIntegerField(primary_key=True)
- username = models.CharField(max_length=100L, unique=True)
- password = models.CharField(max_length=32L)
- email = models.CharField(max_length=100L)
-
- USERNAME_FIELD = 'username'
- REQUIRED_FIELDS = []
- objects = DrupalUserManager()
-
- def __unicode__(self):
- return self.username
-
- class Meta:
- db_table = 'mdl_user'
-
- def is_authenticated(self):
- return True
-
- def is_active(self):
- return True
-
- def is_staff(self):
- return True
-
- def has_perm(self, perm, obj=None):
- return True
-
- def has_module_perms(self, app_label):
- return True