Commit 1ad028a8 authored by Michal Čihař's avatar Michal Čihař

Fix storage validation

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 0e99120a
...@@ -1188,7 +1188,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -1188,7 +1188,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
parsed = self.file_format_cls.parse( parsed = self.file_format_cls.parse(
os.path.join(dir_path, match), os.path.join(dir_path, match),
) )
if not self.file_format_cls.is_valid(parsed): if not self.file_format_cls.is_valid(parsed.store):
errors.append('%s: %s' % ( errors.append('%s: %s' % (
match, _('File does not seem to be valid!') match, _('File does not seem to be valid!')
)) ))
......
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