Commit c71e4418 authored by Caryn Lopez-Go's avatar Caryn Lopez-Go

changed passing_score default to integer

parent d575aa7e
......@@ -13,8 +13,8 @@ class Assignment(models.Model):
name = models.CharField(max_length=50)
description = models.TextField(max_length=500)
course = models.ForeignKey(Course, on_delete=models.CASCADE)
perfect_score = models.PositiveIntegerField(default=0)
passing_score = models.PositiveIntegerField(default=perfect_score*.6)
perfect_score = models.IntegerField(default=0)
passing_score = models.IntegerField(default=int(perfect_score*.6))
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