make it possible to filter products by category and ticket type, and remove description from product list

This commit is contained in:
Thomas Steen Rasmussen 2019-02-10 14:53:01 +01:00
parent 58d670b57f
commit ad0368f486

View file

@ -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']