Final fix for atomic updates
This commit is contained in:
1 parent
3b1821035d
commit
f6886b79d1
1 file changed
+1
-1
+1
-1
@@ -375,7 +375,7 @@ def update_test(request, machine):
|
||||
|
||||
with transaction.atomic():
|
||||
|
||||
test = Test.objects.select_for_update().get(id=test.id)
|
||||
test = Test.objects.select_for_update().get(id=test_id)
|
||||
|
||||
if test.finished or test.deleted:
|
||||
return { 'stop' : True }
|
||||
|
||||
Reference in new issue
Block a user