added krole_id to SiteRole and SliceRole. Enable SyncRoles
[plstackapi.git] / planetstack / core / models / site.py
index aee3843..56f9bd0 100644 (file)
@@ -26,8 +26,9 @@ class Site(PlCoreBase):
 
 class SiteRole(PlCoreBase):
 
-    ROLE_CHOICES = (('admin','Admin'),('pi','PI'),('tech','Tech'),('billing','Billing'))
+    ROLE_CHOICES = (('admin','Admin'),('pi','PI'),('tech','Tech'),('billing','Billing'), ('user', 'User'))
     role = models.CharField(choices=ROLE_CHOICES, unique=True, max_length=30)
+    krole_id = models.CharField(max_length=80, verbose_name="Keystone role id", null=True, blank=True)
 
     def __unicode__(self):  return u'%s' % (self.role)