Fixed #1092 -- Fixed behavior for query-string overrides in admin forms
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f16033ed91
commit
d971b31695
|
@ -429,8 +429,9 @@ def add_stage(request, app_label, module_name, show_delete=False, form_url='', p
|
||||||
# Add default data.
|
# Add default data.
|
||||||
new_data = manipulator.flatten_data()
|
new_data = manipulator.flatten_data()
|
||||||
|
|
||||||
# Override the defaults with request.GET, if it exists.
|
# Override the defaults with GET params, if they exist.
|
||||||
new_data.update(request.GET)
|
new_data.update(dict(request.GET.items()))
|
||||||
|
|
||||||
errors = {}
|
errors = {}
|
||||||
|
|
||||||
# Populate the FormWrapper.
|
# Populate the FormWrapper.
|
||||||
|
|
Loading…
Reference in New Issue