mirror of
https://github.com/ae-utbm/sith.git
synced 2026-12-03 14:22:47 +00:00
Add comment in product type
This commit is contained in:
1 parent
cd4b0d8e0c
commit
6113de33ec
4 files changed
+26
-2
No files matched your search
+2
-2
@@ -688,7 +688,7 @@ class ProductTypeCreateView(CounterAdminTabsMixin, CounterAdminMixin, CreateView
|
||||
A create view for the admins
|
||||
"""
|
||||
model = ProductType
|
||||
fields = ['name', 'description', 'icon']
|
||||
fields = ['name', 'description', 'comment', 'icon']
|
||||
template_name = 'core/create.jinja'
|
||||
current_tab = "products"
|
||||
|
||||
@@ -699,7 +699,7 @@ class ProductTypeEditView(CounterAdminTabsMixin, CounterAdminMixin, UpdateView):
|
||||
"""
|
||||
model = ProductType
|
||||
template_name = 'core/edit.jinja'
|
||||
fields = ['name', 'description', 'icon']
|
||||
fields = ['name', 'description', 'comment', 'icon']
|
||||
pk_url_kwarg = "type_id"
|
||||
current_tab = "products"
|
||||
|
||||
|
||||
Reference in new issue
Block a user