Commit 4d01cc66 by Őry Máté

one: remove Share.name unique

parent 9268e4ac
...@@ -158,7 +158,7 @@ TYPES = {"LAB": {"verbose_name": _('lab'), "id": "LAB", "suspend": t ...@@ -158,7 +158,7 @@ TYPES = {"LAB": {"verbose_name": _('lab'), "id": "LAB", "suspend": t
TYPES_L = sorted(TYPES.values(), key=lambda m: m["suspend"]) TYPES_L = sorted(TYPES.values(), key=lambda m: m["suspend"])
TYPES_C = tuple([(i[0], i[1]["verbose_name"]) for i in TYPES.items()]) TYPES_C = tuple([(i[0], i[1]["verbose_name"]) for i in TYPES.items()])
class Share(models.Model): class Share(models.Model):
name = models.CharField(max_length=100, unique=True, verbose_name=_('name')) name = models.CharField(max_length=100, verbose_name=_('name'))
description = models.TextField(verbose_name=_('description')) description = models.TextField(verbose_name=_('description'))
template = models.ForeignKey('Template', null=False, blank=False) template = models.ForeignKey('Template', null=False, blank=False)
group = models.ForeignKey(Group, null=False, blank=False) group = models.ForeignKey(Group, null=False, blank=False)
......
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