forked from DGNum/gestioCOF
adding argumement hidden
to Article
in order to avoid some articles to appear in the menu
This commit is contained in:
parent
3ca38bd8e9
commit
aa1afccf1f
4 changed files with 28 additions and 7 deletions
|
@ -262,12 +262,12 @@ class ArticleForm(forms.ModelForm):
|
|||
|
||||
class Meta:
|
||||
model = Article
|
||||
fields = ['name', 'is_sold', 'price', 'stock', 'category', 'box_type',
|
||||
fields = ['name', 'is_sold', 'hidden', 'price', 'stock', 'category', 'box_type',
|
||||
'box_capacity']
|
||||
|
||||
class ArticleRestrictForm(ArticleForm):
|
||||
class Meta(ArticleForm.Meta):
|
||||
fields = ['name', 'is_sold', 'price', 'category', 'box_type',
|
||||
fields = ['name', 'is_sold', 'hidden', 'price', 'category', 'box_type',
|
||||
'box_capacity']
|
||||
|
||||
# -----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue