mirror of
https://github.com/pretix/pretix.git
synced 2026-08-21 12:36:26 +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
|
# Count the transactions we already have
|
||||||
current_transaction_count = Counter()
|
current_transaction_count = Counter()
|
||||||
if not is_new:
|
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
|
current_transaction_count[Transaction.key(t)] += t.count
|
||||||
|
|
||||||
# Count the transactions we'd actually need
|
# Count the transactions we'd actually need
|
||||||
|
|||||||
Reference in New Issue
Block a user