X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/300def05b91611b2382df4837c0041d231c8b432..537012c60af1ea1c0e39949c58df4647ddadc72b:/apps/toolbar/models.py?ds=inline diff --git a/apps/toolbar/models.py b/apps/toolbar/models.py index 614cfcb0..ae101e07 100644 --- a/apps/toolbar/models.py +++ b/apps/toolbar/models.py @@ -16,7 +16,7 @@ class ButtonGroup(models.Model): class Button(models.Model): label = models.CharField(max_length=32) - slug = models.SlugField() #unused + slug = models.SlugField(unique=True) #unused # behaviour params = models.TextField() # TODO: should be a JSON field @@ -27,8 +27,7 @@ class Button(models.Model): tooltip = models.CharField(blank=True, max_length=120) # Why the button is restricted to have the same position in each group ? - # position = models.IntegerField(default=0) - + # position = models.IntegerField(default=0) group = models.ManyToManyField(ButtonGroup) class Meta: