Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #586 -- Fixed bug in raw_id_admin caused by [785]. Thanks for t…

…he heads-up, slashzero

git-svn-id: http://code.djangoproject.com/svn/django/trunk@800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d93c68ab5fbd7a426845c4f51ae1588f7d928b84 1 parent 9f7e2f3
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/core/meta/fields.py
View
5 django/core/meta/fields.py
@@ -596,8 +596,9 @@ def __init__(self, to, to_field=None, **kwargs):
Field.__init__(self, **kwargs)
def get_manipulator_field_objs(self):
- if self.rel.raw_id_admin:
- return self.rel.get_related_field().get_manipulator_field_objs()
+ rel_field = self.rel.get_related_field()
+ if self.rel.raw_id_admin and not isinstance(rel_field, AutoField):
+ return rel_field.get_manipulator_field_objs()
else:
return [formfields.IntegerField]
Please sign in to comment.
Something went wrong with that request. Please try again.