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
This commit is contained in:
Malcolm Tredinnick 2006-08-10 03:44:11 +00:00
parent 925c711cf7
commit ffb6ecc335
1 changed files with 1 additions and 1 deletions

View File

@ -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