Commit 9a3b626a authored by Michal Čihař's avatar Michal Čihař

Use real current file format when importing

We need to use real class instead of the base class. The
AutoFormat.parse can return different class which will then better
understand the file format.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fee1fad5
......@@ -1099,7 +1099,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
# Load backend file
try:
# First try using own loader
store = self.subproject.file_format_cls.parse(
store = self.store.parse(
StringIOMode(fileobj.name, filecopy),
self.subproject.template_store
)
......
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