Commit 459abc88 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 491eacb5 bdf3a1c0
...@@ -440,7 +440,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -440,7 +440,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
''' '''
Returns true if new languages can be added. Returns true if new languages can be added.
''' '''
return self.project.new_lang != 'none' return self.new_lang != 'none'
@property @property
def linked_subproject(self): def linked_subproject(self):
...@@ -1237,7 +1237,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -1237,7 +1237,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
''' '''
Creates new language file. Creates new language file.
''' '''
if self.project.new_lang != 'add': if self.new_lang != 'add':
raise ValueError('Not supported operation!') raise ValueError('Not supported operation!')
if not self.file_format_cls.supports_new_language(): if not self.file_format_cls.supports_new_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