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

Return all units on invalid type

parent fdaa543d
......@@ -76,3 +76,5 @@ class UnitManager(models.Manager):
check = rqtype)
sugs = sugs.values_list('checksum', flat = True)
return self.filter(checksum__in = sugs)
else:
return self.all()
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