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:
ad8b093
)
added role_id to role model
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 7 Apr 2013 23:32:20 +0000
(19:32 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 7 Apr 2013 23:32:20 +0000
(19:32 -0400)
plstackapi/planetstack/models.py
patch
|
blob
|
history
diff --git
a/plstackapi/planetstack/models.py
b/plstackapi/planetstack/models.py
index
8904bbd
..
a8fea63
100644
(file)
--- a/
plstackapi/planetstack/models.py
+++ b/
plstackapi/planetstack/models.py
@@
-21,6
+21,7
@@
class PlCoreBase(models.Model):
class Role(PlCoreBase):
ROLE_CHOICES = (('admin', 'Admin'), ('pi', 'Principle Investigator'), ('user','User'))
+ role_id = models.CharField(max_length=256, unique=True)
role_type = models.CharField(max_length=80, unique=True, choices=ROLE_CHOICES)
def __unicode__(self): return u'%s' % (self.role_type)