forked from GithubBackups/healthchecks
I'll put this back. This works and uses single transaction, clear()/add() uses 2 transactions.
This commit is contained in:
parent
ded7038145
commit
53edb555dc
@ -215,8 +215,7 @@ def channels(request):
|
||||
return HttpResponseForbidden()
|
||||
new_checks.append(check)
|
||||
|
||||
channel.checks.clear()
|
||||
channel.checks.add(*new_checks)
|
||||
channel.checks = new_checks
|
||||
return redirect("hc-channels")
|
||||
|
||||
channels = Channel.objects.filter(user=request.user).order_by("created")
|
||||
|
Loading…
x
Reference in New Issue
Block a user