Commit c580cbce authored by Daniel W Bond's avatar Daniel W Bond

part of py3 will require the __unicode__ and __str__ change for the admin, here's the first one

parent a2fcf858
......@@ -57,6 +57,9 @@ class Student(TimeStampedModel):
def get_absolute_url(self):
return reverse('profile', kwargs={'slug': self.slug})
def __str__(self):
return self.get_full_name_or_uname()
def __unicode__(self):
return '%s' % self.user.username
......
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