Browse files

Fixed #2484 -- Handle num_in_admin and num_extra_on_change being 0 fo…

…r the

admin interface. Thanks, Joseph Kocherhans.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 925c711 commit ffb6ecc335bb42b16d864ad6df139716c31029c2 @malcolmt malcolmt committed Aug 10, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/manipulators.py
View
2 django/db/models/manipulators.py
@@ -138,7 +138,7 @@ def save(self, new_data):
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

0 comments on commit ffb6ecc

Please sign in to comment.