Commit 0020d094 authored by Chester Tan's avatar Chester Tan

added __str__ method to Assignments model

parent 07946ffe
...@@ -4,3 +4,6 @@ class Assignment(models.Model): ...@@ -4,3 +4,6 @@ class Assignment(models.Model):
name=models.CharField(max_length=30) name=models.CharField(max_length=30)
description=models.TextField(max_length=500) description=models.TextField(max_length=500)
max_points=models.IntegerField() max_points=models.IntegerField()
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