From b964f470deeffc746d77264f9fcc5cd7101f710a Mon Sep 17 00:00:00 2001 From: Robert Wittams Date: Wed, 2 Nov 2005 23:42:16 +0000 Subject: [PATCH] Raw id admin fix. Thanks bitprophet. git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1056 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/meta/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/meta/fields.py b/django/core/meta/fields.py index bf94498651..58839a5b44 100644 --- a/django/core/meta/fields.py +++ b/django/core/meta/fields.py @@ -196,11 +196,11 @@ class Field(object): if self.maxlength and not self.choices: # Don't give SelectFields a maxlength parameter. params['maxlength'] = self.maxlength if isinstance(self.rel, ManyToOne): - params['member_name'] = name_prefix + self.get_db_column() if self.rel.raw_id_admin: field_objs = self.get_manipulator_field_objs() params['validator_list'].append(curry(manipulator_valid_rel_key, self, manipulator)) else: + params['member_name'] = name_prefix + self.get_db_column() if self.radio_admin: field_objs = [formfields.RadioSelectField] params['ul_class'] = get_ul_class(self.radio_admin)