Commit 95227ec0 authored by Michal Čihař's avatar Michal Čihař

Warn if command has nothing to process

parent 4824ebaa
......@@ -49,10 +49,12 @@ class UnitCommand(BaseCommand):
prj, subprj = parts
base |= Unit.objects.filter(
translation__subproject__slug = subprj,
translation__subproject__project__slug = prj)
translation__subproject__project__slug = prj
)
else:
prj = parts[0]
base |= Unit.objects.filter(translation__subproject__project__slug = prj)
else:
print 'Nothing to process, please use either --all or <project/subproject>'
return base
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