git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adjustments to admin.py for view, fix Role using charfield as primary key, adjusted...
[plstackapi.git]
/
planetstack
/
core
/
models
/
role.py
diff --git
a/planetstack/core/models/role.py
b/planetstack/core/models/role.py
index
e7d31b9
..
d3c577d
100644
(file)
--- 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'))
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)
role_type = models.CharField(max_length=80, unique=True)
def __unicode__(self): return u'%s' % (self.role_type)