Commit 4c604d74 authored by Michal Čihař's avatar Michal Čihař

Properly set ignore flag on check

parent 73cb3931
......@@ -150,11 +150,7 @@ def ignore_check(request, check_id):
obj = get_object_or_404(Check, pk=int(check_id))
obj.project.check_acl(request)
# Mark check for ignoring
obj.ignore = True
obj.save()
# Invalidate caches
for unit in Unit.objects.filter(checksum=obj.checksum):
unit.translation.invalidate_cache()
obj.set_ignore()
# response for AJAX
return HttpResponse('ok')
......
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