Commit 98a00ba6 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Select for update existing Project in approve

parent 01410680
......@@ -1212,7 +1212,8 @@ class ProjectApplication(models.Model):
precursor = self
while precursor:
project = precursor.project
objects = Project.objects.select_for_update()
project = objects.get(application=precursor)
return project
except Project.DoesNotExist:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment