Permalink
Browse files

Fixed bug in [2531]. Thanks, Ned

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 33c4e30 commit 401b83f172d6f2b0da6c67282bd1d93159c61204 @adrianholovaty adrianholovaty committed Mar 20, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/meta/__init__.py
@@ -205,13 +205,13 @@ def get_list(self, parent_instance=None):
change = count - len(list)
if change > 0:
- return list + [None] * len(change)
+ return list + [None] * change
if change < 0:
return list[:change]
else: # Just right
return list
else:
- return [None] * len(self.field.rel.num_in_admin)
+ return [None] * self.field.rel.num_in_admin
def editable_fields(self):
"Get the fields in this class that should be edited inline."

0 comments on commit 401b83f

Please sign in to comment.