Commit 658889da by Őry Máté

school: fix Person.__unicode__

parent c2b89554
...@@ -47,7 +47,7 @@ class Person(models.Model): ...@@ -47,7 +47,7 @@ class Person(models.Model):
def __unicode__(self): def __unicode__(self):
u = self.user u = self.user
if not u: if not u:
return unicode(_("(none)")) return self.code
if u.last_name and u.first_name: if u.last_name and u.first_name:
# TRANSLATORS: full name format used in enumerations # TRANSLATORS: full name format used in enumerations
return _("%(first)s %(last)s") % {'first': u.first_name, return _("%(first)s %(last)s") % {'first': u.first_name,
......
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