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()
|
return HttpResponseForbidden()
|
||||||
new_checks.append(check)
|
new_checks.append(check)
|
||||||
|
|
||||||
channel.checks.clear()
|
channel.checks = new_checks
|
||||||
channel.checks.add(*new_checks)
|
|
||||||
return redirect("hc-channels")
|
return redirect("hc-channels")
|
||||||
|
|
||||||
channels = Channel.objects.filter(user=request.user).order_by("created")
|
channels = Channel.objects.filter(user=request.user).order_by("created")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user