From: Tony Mack Date: Sun, 7 Apr 2013 23:32:20 +0000 (-0400) Subject: added role_id to role model X-Git-Tag: 1.0~262 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f2162d9aa6a016655c55ef7ac29275f03c1ee8e5;p=plstackapi.git added role_id to role model --- diff --git a/plstackapi/planetstack/models.py b/plstackapi/planetstack/models.py index 8904bbd..a8fea63 100644 --- 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)