def toggle_qualitycheck(self, check_id, false_positive, user): check = self.qualitycheck_set.get(id=check_id) if check.false_positive == false_positive: return self.revision = Revision.incr() self.save(reviewed_by=user) toggle.send(check.__class__, instance=check, false_positive=false_positive)