git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab0aeeb
)
define enabled field
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 9 Apr 2013 15:45:28 +0000
(11:45 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 9 Apr 2013 15:45:28 +0000
(11:45 -0400)
plstackapi/planetstack/models.py
patch
|
blob
|
history
diff --git
a/plstackapi/planetstack/models.py
b/plstackapi/planetstack/models.py
index
e796614
..
f795177
100644
(file)
--- a/
plstackapi/planetstack/models.py
+++ b/
plstackapi/planetstack/models.py
@@
-55,6
+55,7
@@
class User(PlCoreBase):
phone = models.CharField(null=True, blank=True, help_text="phone number contact", max_length=100)
user_url = models.URLField(null=True, blank=True)
is_admin = models.BooleanField(default=False)
+ enabled = models.BooleanField(default=True, help_text="Status for this User")
site = models.ForeignKey(Site, related_name='users', verbose_name="Site this user will be homed too")
def __unicode__(self): return u'%s' % (self.email)