Commit 9f847115 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added __str__ to student model... __unicode__ may be deprecated, will need to check

parent ddf145a2
......@@ -72,5 +72,8 @@ class Course(TimeStampedModel):
# validators=RegexValidator('[0-9]{3,}'))
number = models.CharField(max_length=3)
def __str__(self):
return "%s %s" % (self.departmentAbbreviation, self.number)
def __unicode__(self):
return "%s %s" % (self.departmentAbbreviation, self.number)
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