From 625d2cf298e06499ed63b9255aabfffdeb82f940 Mon Sep 17 00:00:00 2001 From: Di Wu Date: Tue, 19 Jan 2016 07:36:53 -0800 Subject: [PATCH] comment --- hc/front/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hc/front/views.py b/hc/front/views.py index f53780ee..c39b9350 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -336,6 +336,7 @@ def verify_email(request, code, token): def remove_channel(request, code): assert request.method == "POST" + # user may refresh the page during POST and cause two deletion attempts channel = Channel.objects.filter(code=code).first() if channel: if channel.user != request.user: