Commit 7dfe0555 authored by Michal Čihař's avatar Michal Čihař

Merge remote-tracking branch 'origin/master'

parents 54fff08f c3a57120
......@@ -145,7 +145,7 @@ class Language(models.Model):
ordering = ['name']
def __unicode__(self):
if '_' in self.code or '-' in self.code:
if not '(' in self.name and ('_' in self.code or '-' in self.code):
return '%s (%s)' % (_(self.name), self.code)
return _(self.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 to comment