Commit 18b74205 authored by Michal Čihař's avatar Michal Čihař

Store real language code on creation (issue #87)

parent 07501d22
......@@ -78,6 +78,7 @@ class TranslationManager(models.Manager):
lang = Language.objects.auto_create(code)
translation, created = self.get_or_create(
language = lang,
language_code = code,
subproject = subproject
)
if translation.filename != path:
......
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