我想使用select2提供的templateSelection选项。在
将其添加到“选择选项”列表时,将使用引号呈现它。在
invited_user=forms.ModelMultipleChoiceField(queryset=User.objects.all(),
required=True,
widget=Select2MultipleWidget(select2_options={
'templateSelection': 'testformation',
}))
这将返回:
^{pr2}$使用引号时,它不会被检测为js函数,因此它无法工作。在
有人能帮我把这个弄起来吗?在
目前没有回答
相关问题 更多 >
编程相关推荐