Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit d971b31695f6f1f1be86d97935119061bf167862 1 parent f16033e
Adrian Holovaty authored December 21, 2005

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  django/contrib/admin/views/main.py
5  django/contrib/admin/views/main.py
@@ -429,8 +429,9 @@ def add_stage(request, app_label, module_name, show_delete=False, form_url='', p
429 429
         # Add default data.
430 430
         new_data = manipulator.flatten_data()
431 431
 
432  
-        # Override the defaults with request.GET, if it exists.
433  
-        new_data.update(request.GET)
  432
+        # Override the defaults with GET params, if they exist.
  433
+        new_data.update(dict(request.GET.items()))
  434
+
434 435
         errors = {}
435 436
 
436 437
     # Populate the FormWrapper.

0 notes on commit d971b31

Please sign in to comment.
Something went wrong with that request. Please try again.