Atrybut key modelu toolbar.button nie jest już wymagany.
authorzuber <marek@stepniowski.com>
Wed, 19 Aug 2009 21:47:37 +0000 (23:47 +0200)
committerzuber <marek@stepniowski.com>
Wed, 19 Aug 2009 21:47:37 +0000 (23:47 +0200)
apps/toolbar/models.py

index 7a83d1a..a3db70f 100644 (file)
@@ -19,7 +19,7 @@ class Button(models.Model):
     label = models.CharField(max_length=32)
     slug = models.SlugField()
     tag = models.CharField(max_length=128)
     label = models.CharField(max_length=32)
     slug = models.SlugField()
     tag = models.CharField(max_length=128)
-    key = models.CharField(max_length=1)
+    key = models.CharField(blank=True, max_length=1)
     position = models.IntegerField(default=0)
     
     group = models.ManyToManyField(ButtonGroup)
     position = models.IntegerField(default=0)
     
     group = models.ManyToManyField(ButtonGroup)