mirror of
https://github.com/pretix/pretix.git
synced 2026-01-30 01:32:28 +00:00
Work around potential caching issue
This commit is contained in:
@@ -1035,7 +1035,7 @@ class Order(LockModel, LoggedModel):
|
||||
# Count the transactions we already have
|
||||
current_transaction_count = Counter()
|
||||
if not is_new:
|
||||
for t in self.transactions.all():
|
||||
for t in Transaction.objects.filter(order=self): # do not use related manager, we want to avoid cached data
|
||||
current_transaction_count[Transaction.key(t)] += t.count
|
||||
|
||||
# Count the transactions we'd actually need
|
||||
|
||||
Reference in New Issue
Block a user