mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Removed "from" if all variations have the same price
This commit is contained in:
@@ -54,6 +54,7 @@ class EventIndex(EventViewMixin, CartDisplayMixin, TemplateView):
|
||||
var.price = var.get('price', item.default_price)
|
||||
if len(item.available_variations) > 0:
|
||||
item.min_price = min([v.price for v in item.available_variations])
|
||||
item.max_price = max([v.price for v in item.available_variations])
|
||||
|
||||
items = [item for item in items if len(item.available_variations) > 0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user