Commit 7d68f13a by Őry Máté

dashboard: fix GroupProfile fields

* description shouldn't be required
* org_id should be saved as null if blank (to avoid unique collisions)

fixes #165
parent 5b11e755
......@@ -102,7 +102,12 @@ class GroupProfile(AclBase):
org_id = CharField(
unique=True, blank=True, null=True, max_length=64,
help_text=_('Unique identifier of the group at the organization.'))
description = TextField()
description = TextField(blank=True)
def save(self, *args, **kwargs):
if not self.org_id:
self.org_id = None
super(GroupProfile, self).save(*args, **kwargs)
@classmethod
def search(cls, name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment