summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-08-10 03:44:11 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-08-10 03:44:11 +0000
commitffb6ecc335bb42b16d864ad6df139716c31029c2 (patch)
treec670c55f5a2e1654cb0c3bccee35ac522a5655d5
parent925c711cf75072526ced0ae8f18d561dca612092 (diff)
Fixed #2484 -- Handle num_in_admin and num_extra_on_change being 0 for the
admin interface. Thanks, Joseph Kocherhans. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/models/manipulators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py
index 69e13dd160..b0ce48dec5 100644
--- a/django/db/models/manipulators.py
+++ b/django/db/models/manipulators.py
@@ -138,7 +138,7 @@ class AutomaticManipulator(forms.Manipulator):
child_follow = self.follow.get(related.name, None)
if child_follow:
- obj_list = expanded_data[related.var_name].items()
+ obj_list = expanded_data.get(related.var_name, {}).items()
if not obj_list:
continue