Added str func in assignment model to return name.

parent 32c21eeb
......@@ -5,3 +5,6 @@ class Assignment(models.Model):
name = models.CharField(max_length=50)
description = models.TextField(max_length=1500)
max_points = models.IntegerField(default=0)
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