From 9c01770b3c8fcb2a7162e90dd34cbd052fb57d9c Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Tue, 9 Apr 2024 23:06:52 +1000 Subject: [PATCH] contacts: Allow email via POST or GET parameters --- conservancy/contacts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conservancy/contacts/views.py b/conservancy/contacts/views.py index 65ea3445..daaf4d67 100644 --- a/conservancy/contacts/views.py +++ b/conservancy/contacts/views.py @@ -21,7 +21,7 @@ def unsubscribe(request): if request.method == 'POST': logger.debug('Unsubscribe GET: %s', request.GET) logger.debug('Unsubscribe POST: %s', request.POST) - form = UnsubscribeForm(request.POST) + form = UnsubscribeForm(request.GET | request.POST) if form.is_valid(): form.save() logger.info('Unsubscribed %s', form.cleaned_data['email'])