mirror of
https://github.com/pretix/pretix.git
synced 2026-05-12 16:24:00 +00:00
get_all_variations: return an empty dict in the list if there are no
properties
This commit is contained in:
@@ -555,6 +555,7 @@ class Item(models.Model):
|
||||
result = []
|
||||
for comb in product(*[prop.values.all() for prop in all_properties]):
|
||||
if len(comb) == 0:
|
||||
result.append({})
|
||||
continue
|
||||
key = []
|
||||
var = {}
|
||||
|
||||
Reference in New Issue
Block a user