Commit 6bcd82ba authored by Daniel W Bond's avatar Daniel W Bond
Browse files

changed student tostring's to student's names or usernames, rather than just usernames

parent 5a1bb016
......@@ -293,10 +293,10 @@ class Student(TimeStampedModel):
ordering = ['user']
def __str__(self): # __unicode__ on Python 2
return self.user.username
return self.get_full_name_or_uname()
def __unicode__(self):
return unicode(self.user.username)
return unicode(self.get_full_name_or_uname())
# uncomment if there's something going awry while saving
# def save(self, *args, **kwargs):
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