Commit 3bb51b77 authored by kylemendozaa's avatar kylemendozaa

added passing score field to assignment model

parent ba9f5ab3
......@@ -5,4 +5,10 @@ class Assignment(models.Model):
name = models.CharField(max_length=30)
description = models.TextField()
max_points = models.IntegerField()
passing_score = models.IntegerField()
def save(self):
self.passing_score = int(0.6*self.max_points)
super(Assignment, self).save()
\ 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