X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fcore%2Fmodels%2Frole.py;h=d3c577d8048040ecca9baa6713bfc6ca48ca34e6;hb=47ae1b51a8639f63e2a9785126dbd7b87fe99d66;hp=e7d31b949a81871a6ec99efdeedaf2bb5d3c9079;hpb=aa1bcd5fe20fa845d065bc55d90c87708126bff4;p=plstackapi.git diff --git a/planetstack/core/models/role.py b/planetstack/core/models/role.py index e7d31b9..d3c577d 100644 --- a/planetstack/core/models/role.py +++ b/planetstack/core/models/role.py @@ -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)