Opened 14 years ago

Last modified 9 years ago

#14402 closed

help_text is not displayed for ManyToMany raw_id fields — at Initial Version

Reported by: Germano Gabbianelli Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords: raw_id_fields
Cc: Germano Gabbianelli, chris@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

if db_field.name in self.raw_id_fields:
    kwargs['widget'] = widgets.ManyToManyRawIdWidget(db_field.rel, using=db)
    kwargs['help_text'] = ''

In contrib.admin.options.BaseModelAdmin.formfield_for_manytomany the help_text is reset to "" because otherwise ManyToManyField.__init__ would prependo to it 'Hold down "Control", or "Command"...':

msg = _('Hold down "Control", or "Command" on a Mac, to select more than one.')
self.help_text = string_concat(self.help_text, ' ', msg)

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top