1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

Fixed #14402 -- Removed clearing of help_text for ManyToManyField's raw_id_fields.

This commit is contained in:
Alexander Gaevsky
2016-01-29 23:21:21 +02:00
committed by Tim Graham
parent 9644e2e968
commit c79852acee
3 changed files with 12 additions and 2 deletions

View File

@@ -242,7 +242,6 @@ class BaseModelAdmin(six.with_metaclass(forms.MediaDefiningClass)):
if db_field.name in self.raw_id_fields:
kwargs['widget'] = widgets.ManyToManyRawIdWidget(db_field.remote_field,
self.admin_site, using=db)
kwargs['help_text'] = ''
elif db_field.name in (list(self.filter_vertical) + list(self.filter_horizontal)):
kwargs['widget'] = widgets.FilteredSelectMultiple(
db_field.verbose_name,