forms.py: change NextUrlFormMixin's field "next_url" to be optional (fixes #6917)

If not optional and no next_url parameter is given, an error is raised
and the user can never complete the form.
This commit is contained in:
Benjamin Dauvergne 2015-03-25 09:03:46 +01:00
parent 10e38ad443
commit 538ea47f6b
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class EmailChangeForm(forms.Form):
return password
class NextUrlFormMixin(forms.Form):
next_url = forms.CharField(widget=forms.HiddenInput())
next_url = forms.CharField(widget=forms.HiddenInput(), required=False)
def __init__(self, *args, **kwargs):
from .middleware import StoreRequestMiddleware