Commit e9fe67c6 by Őry Máté

school: fix Course.__unicode__

parent f4b5ea3e
......@@ -85,7 +85,7 @@ class Course(models.Model):
super(Course, self).save(*args, **kwargs)
def __unicode__(self):
if self.short_name:
if self.name:
return u"%s (%s)" % (self.code, self.name)
else:
return self.code
......
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 sign in to comment