models have been modified for passing_score

parent dd90a1f1
......@@ -14,4 +14,5 @@ class Assignment(models.Model):
on_delete=models.PROTECT,
)
perfect_score = models.IntegerField()
passing_score = models.IntegerField(0.60*perfect_score)
\ No newline at end of file
passing = 0.60*float(perfect_score)
passing_score = models.FloatField(passing)
\ No newline at end of file
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