Ticket #6938: nfa_initial_get_parameters.diff

File nfa_initial_get_parameters.diff, 680 bytes (added by Matthias Pronk <django@…>, 17 years ago)
  • django/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