Commit bfb13b71 authored by Michal Čihař's avatar Michal Čihař

Do not list new translation template as translation

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f6e35366
......@@ -895,6 +895,8 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
matches.add(self.template)
else:
matches.discard(self.template)
if self.new_base and self.new_base != self.template:
matches.discard(self.new_base)
return sorted(matches)
def create_translations(self, force=False, langs=None, request=None):
......
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