Commit 432c834e authored by Michal Čihař's avatar Michal Čihař

Better check for up to date translation object

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent eb625f66
......@@ -1467,7 +1467,9 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
# the processing of new language can take some time and user
# can submit again)
if os.path.exists(fullname):
translation.check_sync(request=request)
Translation.objects.check_sync(
self, language, language.code, filename, request=request
)
return
self.file_format_cls.add_language(
......
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