Commit 6bbc064d900e8a414b17ac5a199f7d5fcda1fa39

Authored by Alexis Koralewski
1 parent 80f63c96
Exists in dev

add f_quota to scientific program

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/core/pyros_django/user_mgmt/models.py
... ... @@ -476,6 +476,9 @@ class ScientificProgram(models.Model):
476 476 is_auto_validated = models.BooleanField(default=False)
477 477 objects = ScientificProgramManager()
478 478 quota = models.ForeignKey(Quota, on_delete=models.DO_NOTHING,related_name="scientific_program_quotas", blank=True, null=True)
  479 + f_quota = models.FloatField(
  480 + validators=[MinValueValidator(0), MaxValueValidator(1)], blank=True, null=True)
  481 +
479 482 class Meta:
480 483 managed = True
481 484 db_table = 'scientific_program'
... ...