mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed #586 -- Fixed bug in raw_id_admin caused by [785]. Thanks for the heads-up, slashzero
git-svn-id: http://code.djangoproject.com/svn/django/trunk@800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9f7e2f38dd
commit
d93c68ab5f
@ -596,8 +596,9 @@ class ForeignKey(Field):
|
||||
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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user