Added admin action to make an expired order pending again

This commit is contained in:
Raphael Michel
2016-10-03 11:14:20 +02:00
parent 59e2340529
commit b5a23224c8
7 changed files with 72 additions and 16 deletions

View File

@@ -286,8 +286,6 @@ class Order(LoggedModel):
raise Quota.QuotaExceededException(error_messages['unavailable'])
for quota in quotas:
# Lock the quota, so no other thread is allowed to perform sales covered by this
# quota while we're doing so.
if quota.id not in quota_cache:
quota_cache[quota.id] = quota
quota.cached_availability = quota.availability(now_dt)[1]