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