Permalink
Browse files

is_valid(), not is_valid

  • Loading branch information...
ubernostrum
ubernostrum committed May 19, 2007
1 parent d908f88 commit 32b3b2dcfd6c882c4c12a450206d6eeeafe0e02b
Showing with 1 addition and 1 deletion.
  1. +1 −1 views.py
@@ -41,7 +41,7 @@ def contact_form(request, form_class=ContactForm, template_name='contact/contact

if request.method == 'POST':
form = form_class(request.POST)
if form.is_valid:
if form.is_valid():
if form.save():
return HttpResponseRedirect(success_url)
else:

0 comments on commit 32b3b2d

Please sign in to comment.