contacts: Allow email via POST or GET parameters
This commit is contained in:
parent
789d0c8c84
commit
9c01770b3c
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue