Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed bug in admin: raw_id_admin fields weren't displaying their old …

…values next to the form field, due to descriptor-fields change

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent c6750ac commit 2b551dec408dae44f3e9a75a3e7fe2128cc4bd52 @adrianholovaty adrianholovaty committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/views/
4 django/contrib/admin/views/
@@ -143,9 +143,9 @@ def existing_display(self):
return self._display
except AttributeError:
if isinstance(self.field.rel, models.ManyToOneRel):
- self._display = getattr(self.original, 'get_%s' %
+ self._display = getattr(self.original, self.field.attname)
elif isinstance(self.field.rel, models.ManyToManyRel):
- self._display = ", ".join([str(obj) for obj in getattr(self.original, 'get_%s_list' % self.field.rel.singular)()])
+ self._display = ", ".join([str(obj) for obj in getattr(self.original, self.field.attname).all()])
return self._display
def __repr__(self):

0 comments on commit 2b551de

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