added role_id to role model
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Sun, 7 Apr 2013 23:32:20 +0000 (19:32 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Sun, 7 Apr 2013 23:32:20 +0000 (19:32 -0400)
plstackapi/planetstack/models.py

index 8904bbd..a8fea63 100644 (file)
@@ -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)