mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Made raw_id_admin work with non-integer primary keys
git-svn-id: http://code.djangoproject.com/svn/django/trunk@790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
cb628c0cb7
commit
9fe02e6b65
@ -596,7 +596,10 @@ class ForeignKey(Field):
|
||||
Field.__init__(self, **kwargs)
|
||||
|
||||
def get_manipulator_field_objs(self):
|
||||
return [formfields.IntegerField]
|
||||
if self.rel.raw_id_admin:
|
||||
return self.rel.get_related_field().get_manipulator_field_objs()
|
||||
else:
|
||||
return [formfields.IntegerField]
|
||||
|
||||
class ManyToManyField(Field):
|
||||
def __init__(self, to, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user