Commit 6bbc064d900e8a414b17ac5a199f7d5fcda1fa39
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,6 +476,9 @@ class ScientificProgram(models.Model): | ||
476 | is_auto_validated = models.BooleanField(default=False) | 476 | is_auto_validated = models.BooleanField(default=False) |
477 | objects = ScientificProgramManager() | 477 | objects = ScientificProgramManager() |
478 | quota = models.ForeignKey(Quota, on_delete=models.DO_NOTHING,related_name="scientific_program_quotas", blank=True, null=True) | 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 | class Meta: | 482 | class Meta: |
480 | managed = True | 483 | managed = True |
481 | db_table = 'scientific_program' | 484 | db_table = 'scientific_program' |