make it possible to filter products by category and ticket type, and remove description from product list
This commit is contained in:
parent
58d670b57f
commit
ad0368f486
|
@ -107,12 +107,16 @@ class ProductAdmin(admin.ModelAdmin):
|
||||||
'category',
|
'category',
|
||||||
'ticket_type',
|
'ticket_type',
|
||||||
'price',
|
'price',
|
||||||
'description',
|
|
||||||
stock_info,
|
stock_info,
|
||||||
available_from,
|
available_from,
|
||||||
available_to
|
available_to
|
||||||
]
|
]
|
||||||
|
|
||||||
|
list_filter = [
|
||||||
|
'category',
|
||||||
|
'ticket_type',
|
||||||
|
]
|
||||||
|
|
||||||
search_fields = ['name']
|
search_fields = ['name']
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue