summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-12-21 03:37:31 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-12-21 03:37:31 +0000
commitd971b31695f6f1f1be86d97935119061bf167862 (patch)
tree1417b7335d2d9776b3925b97a17c3e761b573688
parentf16033ed91c15056a124b5d970c720f47e8dd82f (diff)
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
-rw-r--r--django/contrib/admin/views/main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py
index a3a7ddfb18..f719c04e5c 100644
--- a/django/contrib/admin/views/main.py
+++ b/django/contrib/admin/views/main.py
@@ -429,8 +429,9 @@ def add_stage(request, app_label, module_name, show_delete=False, form_url='', p
# Add default data.
new_data = manipulator.flatten_data()
- # Override the defaults with request.GET, if it exists.
- new_data.update(request.GET)
+ # Override the defaults with GET params, if they exist.
+ new_data.update(dict(request.GET.items()))
+
errors = {}
# Populate the FormWrapper.