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

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):
class ProjectResourceGrant(models.Model):
resource = models.ForeignKey(Resource)
project_application = models.ForeignKey(ProjectApplication,
project_capacity = models.BigIntegerField(null=True)
member_capacity = models.BigIntegerField(default=0)
project_application = models.ForeignKey(ProjectApplication)
project_capacity = models.BigIntegerField()
member_capacity = models.BigIntegerField()
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