Browse Source

I'll put this back. This works and uses single transaction, clear()/add() uses 2 transactions.

pull/20/head
Pēteris Caune 9 years ago
parent
commit
53edb555dc
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      hc/front/views.py

+ 1
- 2
hc/front/views.py View File

@ -215,8 +215,7 @@ def channels(request):
return HttpResponseForbidden() return HttpResponseForbidden()
new_checks.append(check) new_checks.append(check)
channel.checks.clear()
channel.checks.add(*new_checks)
channel.checks = 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…
Cancel
Save