Commit 7baa88f1 by Dudás Ádám

school: re-evaluated my usage of "no cover" pragmas

parent 479ac733
......@@ -62,9 +62,9 @@ class Person(models.Model):
def short_name(self):
if self.user:
if self.user.last_name: # pragma: no cover
if self.user.last_name:
return self.user.last_name
else: # pragma: no cover
else:
return self.user.username
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