Commit c951ba4d authored by Michal Čihař's avatar Michal Čihař

Use .format instead of %

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 9f7aa38d
......@@ -362,7 +362,9 @@ class Language(models.Model, PercentMixin):
def __unicode__(self):
if self.show_language_code:
return '%s (%s)' % (_(self.name), self.code)
return u'{0} ({1})'.format(
_(self.name), self.code
)
return _(self.name)
@property
......
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