Ticket #7024: newforms-admin.patch
File newforms-admin.patch, 659 bytes (added by , 17 years ago) |
---|
-
contrib/admin/options.py
469 469 if all_valid(inline_formsets) and form.is_valid(): 470 470 return self.save_add(request, model, form, inline_formsets, '../%s/') 471 471 else: 472 form = ModelForm(initial= request.GET)472 form = ModelForm(initial=dict(request.GET.items())) 473 473 for FormSet in self.get_formsets(request): 474 474 inline_formset = FormSet(instance=obj) 475 475 inline_formsets.append(inline_formset)