mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
magic-removal: Merged to [2533]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
52a96c1686
commit
4f2752c333
@ -58,7 +58,7 @@ class RelatedObject(object):
|
||||
|
||||
change = count - len(objects)
|
||||
if change > 0:
|
||||
return objects + [None] * len(change)
|
||||
return objects + [None] * change
|
||||
if change < 0:
|
||||
return objects[:change]
|
||||
else: # Just right
|
||||
@ -68,7 +68,7 @@ class RelatedObject(object):
|
||||
# object
|
||||
return [attr]
|
||||
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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user