Minor SQL performance improvements

This commit is contained in:
Raphael Michel
2020-04-17 12:14:37 +02:00
parent ed5726fc0c
commit e70f593a94
2 changed files with 10 additions and 8 deletions

View File

@@ -455,7 +455,8 @@ class Item(LoggedModel):
t = TaxedPrice(gross=price, net=price, tax=Decimal('0.00'),
rate=Decimal('0.00'), name='')
else:
t = self.tax_rule.tax(price, base_price_is=base_price_is, currency=currency)
t = self.tax_rule.tax(price, base_price_is=base_price_is,
currency=currency or self.event.currency)
if include_bundled:
for b in self.bundles.all():