Ticket #7024: newforms-admin.patch

File newforms-admin.patch, 659 bytes (added by Martín Conte Mac Donell <Reflejo@…>, 17 years ago)
  • contrib/admin/options.py

     
    469469            if all_valid(inline_formsets) and form.is_valid():
    470470                return self.save_add(request, model, form, inline_formsets, '../%s/')
    471471        else:
    472             form = ModelForm(initial=request.GET)
     472            form = ModelForm(initial=dict(request.GET.items()))
    473473            for FormSet in self.get_formsets(request):
    474474                inline_formset = FormSet(instance=obj)
    475475                inline_formsets.append(inline_formset)
Back to Top