corrected views/user/register method
authoranoop
Fri, 29 Jan 2010 22:18:29 +0530
changeset 8 825a497d95b0
parent 7 232d40a28118
child 9 554581fa3253
corrected views/user/register method
pytask/taskapp/views/users.py
--- a/pytask/taskapp/views/users.py	Fri Jan 29 22:11:43 2010 +0530
+++ b/pytask/taskapp/views/users.py	Fri Jan 29 22:18:29 2010 +0530
@@ -66,7 +66,7 @@
                 form = RegistrationForm(request.POST)
                 return render_to_response('user/register.html',{'form':form,'errors':errors})#HttpResponse('Password did not match')
         else:
-            form = RegistrationForm()
+            form = RegistrationForm(request.POST)
     else:
         form = RegistrationForm()
     return render_to_response('user/register.html', {'form': form})