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

Skip suprojects without translations

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7e86d1fc
......@@ -171,7 +171,10 @@ def show_check_project(request, name, project):
'contentsum', flat=True
)
for subproject in prj.subproject_set.all():
try:
lang = subproject.translation_set.all()[0].language
except IndexError:
continue
res = Unit.objects.filter(
contentsum__in=checks,
translation__language=lang,
......
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