Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit ffb6ecc335bb42b16d864ad6df139716c31029c2 1 parent 925c711
Malcolm Tredinnick authored August 10, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/models/manipulators.py
2  django/db/models/manipulators.py
@@ -138,7 +138,7 @@ def save(self, new_data):
138 138
             child_follow = self.follow.get(related.name, None)
139 139
 
140 140
             if child_follow:
141  
-                obj_list = expanded_data[related.var_name].items()
  141
+                obj_list = expanded_data.get(related.var_name, {}).items()
142 142
                 if not obj_list:
143 143
                     continue
144 144
 

0 notes on commit ffb6ecc

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