adding argumement hidden to Article

in order to avoid some articles to appear in the menu
This commit is contained in:
Qwann 2017-01-26 19:22:38 +01:00
parent 3ca38bd8e9
commit aa1afccf1f
4 changed files with 28 additions and 7 deletions

View file

@ -331,6 +331,10 @@ class ArticleCategory(models.Model):
class Article(models.Model):
name = models.CharField(max_length = 45)
is_sold = models.BooleanField(default = True)
hidden = models.BooleanField(default=False,
help_text="Si oui, ne sera pas affiché "
"au public ; par exemple "
"sur la carte.")
price = models.DecimalField(
max_digits = 6, decimal_places = 2,
default = 0)