From fabdc484920b28f01f0f5577615c8eb2015a139d Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 14 Jan 2018 12:19:44 +0100 Subject: [PATCH] add a description field to the Option model --- django/didgeridoo/webshop/fixtures/webshop.yaml | 1 + django/didgeridoo/webshop/models.py | 1 + 2 files changed, 2 insertions(+) diff --git a/django/didgeridoo/webshop/fixtures/webshop.yaml b/django/didgeridoo/webshop/fixtures/webshop.yaml index d405c5a..fd09a94 100644 --- a/django/didgeridoo/webshop/fixtures/webshop.yaml +++ b/django/didgeridoo/webshop/fixtures/webshop.yaml @@ -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 diff --git a/django/didgeridoo/webshop/models.py b/django/didgeridoo/webshop/models.py index 3d51293..6a95fe8 100644 --- a/django/didgeridoo/webshop/models.py +++ b/django/didgeridoo/webshop/models.py @@ -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)