Commit 5b6edacb authored by Michal Čihař's avatar Michal Čihař

Do not fail when template is None

parent 75527f7a
......@@ -1099,7 +1099,7 @@ class SubProject(models.Model):
'''
Returns true if subproject is using template for translation
'''
return self.get_file_format().monolingual != False and self.template != ''
return self.get_file_format().monolingual != False and self.template != '' and not self.template is None
def should_mark_fuzzy(self):
'''
......
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