add a description field to the Option model

This commit is contained in:
Andreas Zweili 2018-01-14 12:19:44 +01:00
parent d4502c655f
commit fabdc48492
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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)