- slug = models.SlugField()
- tag = models.CharField(max_length=128)
- key = models.CharField(max_length=1)
- position = models.IntegerField(default=0)
-
+ slug = models.SlugField(unique=True) #unused
+
+ # behaviour
+ params = models.TextField() # TODO: should be a JSON field
+ scriptlet = models.ForeignKey('Scriptlet')
+
+ # ui related stuff
+ key = models.CharField(blank=True, max_length=1)
+ 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)