1. gojomo
  2. django-registration


ubernostrum  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
  • Branches default

Comments (0)

Files changed (1)

File registration/views.py

View file
  • Ignore whitespace
     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)