Commit 6ff1e35f authored by Caryn Lopez-Go's avatar Caryn Lopez-Go

changed passing_score into integer

parent c71e4418
......@@ -14,7 +14,8 @@ class Assignment(models.Model):
description = models.TextField(max_length=500)
course = models.ForeignKey(Course, on_delete=models.CASCADE)
perfect_score = models.IntegerField(default=0)
passing_score = models.IntegerField(default=int(perfect_score*.6))
passing = round(perfect_score*0.6)
passing_score = models.IntegerField(default=passing)
def __str__(self):
return self.name
\ 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