Commit 1568bdff authored by Michal Čihař's avatar Michal Čihař

Use canonical language code when automatically creating language

This prevents various problems with non standard language names.

Fixes #318
parent 52b25741
......@@ -156,7 +156,7 @@ class LanguageManager(models.Manager):
pass
# Create new one
return self.auto_create(code)
return self.auto_create(newcode)
def auto_create(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 to comment