add a description field to the Option model
This commit is contained in:
parent
d4502c655f
commit
fabdc48492
|
@ -99,5 +99,6 @@
|
||||||
- model: webshop.Option
|
- model: webshop.Option
|
||||||
fields:
|
fields:
|
||||||
name: max_pictures
|
name: max_pictures
|
||||||
|
description: "Maximum number of Pictures a user is allowed to upload."
|
||||||
value: 5
|
value: 5
|
||||||
enabled: True
|
enabled: True
|
||||||
|
|
|
@ -7,6 +7,7 @@ from django.utils import timezone
|
||||||
|
|
||||||
class Option(models.Model):
|
class Option(models.Model):
|
||||||
name = models.CharField(max_length=200, unique=True)
|
name = models.CharField(max_length=200, unique=True)
|
||||||
|
description = models.CharField(max_length=200, unique=True)
|
||||||
value = models.IntegerField(default=5)
|
value = models.IntegerField(default=5)
|
||||||
enabled = models.BooleanField(default=False)
|
enabled = models.BooleanField(default=False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue