Commit 01410680 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Add ForUpdateManager for Project and ProjectApplication

parent 16cadd40
......@@ -1159,6 +1159,8 @@ class ProjectApplication(models.Model):
comments = models.TextField(null=True, blank=True)
issue_date = models.DateTimeField()
objects = ForUpdateManager()
def add_resource_policy(self, service, resource, uplimit):
"""Raises ObjectDoesNotExist, IntegrityError"""
q = self.projectresourcegrant_set
......@@ -1317,6 +1319,8 @@ class Project(models.Model):
objects = ForUpdateManager()
def violated_resource_grants(self):
return False
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