Permalink
Browse files

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
  • Loading branch information...
1 parent cb628c0 commit 9fe02e6b65bf6adb9f2bcb07e19e3bfbb5f918af @adrianholovaty adrianholovaty committed Oct 6, 2005
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/core/meta/fields.py
@@ -596,7 +596,10 @@ def __init__(self, to, to_field=None, **kwargs):
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):

0 comments on commit 9fe02e6

Please sign in to comment.