﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33857	using FilteredSelectMultiple widget on forms.ModelMultipleChoiceField is not working	Sebastian Rossi	nobody	"Hello there, 
I have a form which has a ModelMultipleChoiceField in it, that works correctly, but when i try to add the FilteredSelectMultiple widget from the admin widgets somehow the selected values are no longer in the payload of the POST request

Here is the piece of code for the form field


{{{
    class Media:
        css = {
            'all': ('/static/admin/css/widgets.css',),
        }
        js = ('/admin/jsi18n',)

    dental_codes = forms.ModelMultipleChoiceField(
        label='Select Proccedure Codes',
        queryset = CDTADACodes.objects.all(),
        widget = FilteredSelectMultiple('Dental Codes Selection', is_stacked=True),
        required = False
    )
}}}

Here is the html template


{{{
            <div class=""row justify-content-md-center"">
              <div class=""form-group"">
                {{form.media}}
                {{form.dental_codes.errors}}
                {{form.dental_codes}}
              </div>
            </div>
}}}

Template is correctly loaded in Front End but no values are selected when used. Only by commenting the widget assignment sentence the code works correctly.

Any help is welcomed, thanks in advance"	Bug	closed	Forms	2.2	Normal	invalid	forms, widgets, ManytoMany, ModelMultipleChoiceField		Unreviewed	0	0	0	0	0	0
