Commit 3d71e7cf authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Make ProjectResourceGrant fields non null

Field project_capacity now requires a value; field project_application
was mistakenly set nullable.
parent 8df59879
...@@ -1480,10 +1480,9 @@ class ProjectResourceGrantManager(models.Manager): ...@@ -1480,10 +1480,9 @@ class ProjectResourceGrantManager(models.Manager):
class ProjectResourceGrant(models.Model): class ProjectResourceGrant(models.Model):
resource = models.ForeignKey(Resource) resource = models.ForeignKey(Resource)
project_application = models.ForeignKey(ProjectApplication, project_application = models.ForeignKey(ProjectApplication)
null=True) project_capacity = models.BigIntegerField()
project_capacity = models.BigIntegerField(null=True) member_capacity = models.BigIntegerField()
member_capacity = models.BigIntegerField(default=0)
objects = ProjectResourceGrantManager() objects = ProjectResourceGrantManager()
......
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