Commits

Anonymous committed d778130

Forms now passed request.FILES. Also, use keyword arguments to make things clearer and less prone to problems if people change the positional argument signature of a subclass (which you shouldn't do, btw).

  • Participants
  • Parent commits 0316a37

Comments (0)

Files changed (1)

registration/views.py

     
     """
     if request.method == 'POST':
-        form = form_class(request.POST)
+        form = form_class(data=request.POST, files=request.FILES)
         if form.is_valid():
             new_user = form.save(profile_callback=profile_callback)
             return HttpResponseRedirect(success_url)