Adjustments to admin.py for view, fix Role using charfield as primary key, adjusted...
[plstackapi.git] / planetstack / core / models / role.py
index e7d31b9..d3c577d 100644 (file)
@@ -7,7 +7,7 @@ from openstack.manager import OpenStackManager
 class Role(PlCoreBase):
 
     #ROLE_CHOICES = (('admin', 'Admin'), ('pi', 'Principle Investigator'), ('user','User'))
-    role_id = models.CharField(max_length=256, unique=True)
+    role = models.CharField(null=True, blank=True,max_length=256, unique=True)
     role_type = models.CharField(max_length=80, unique=True)
 
     def __unicode__(self):  return u'%s' % (self.role_type)