私が間違っていることを願っていますがhelp_text
、 ManyToManyField を no にする唯一の__init__
方法は、フォームのメソッドを作成して上書きすることself.fields[fieldname].help_text
です。それが本当に唯一の方法ですか?私はCheckboxSelectMultple
ウィジェットを使用する方が好き__init__
なので、ManyToManyField
.
class ManyToManyField(RelatedField, Field):
description = _("Many-to-many relationship")
def __init__(self, to, **kwargs):
#some other stuff
msg = _('Hold down "Control", or "Command" on a Mac, to select more than one.')
self.help_text = string_concat(self.help_text, ' ', msg)