can u plese send this code
On Saturday, March 18, 2017 at 10:28:07 PM UTC+5:30, ايهاب توفيق wrote:
>
> I am tring to create drop down checkbox with values from database in my
> templet using bootstrap select and form MultipleChoiceField like this
>
>
>
> Html
>
> select
thank you for your help
بتاريخ السبت، 18 مارس، 2017 6:58:07 م UTC+2، كتب ايهاب توفيق:
>
> I am tring to create drop down checkbox with values from database in my
> templet using bootstrap select and form MultipleChoiceField like this
>
>
>
> Html
>
> select class="selectpicker" multiple>
>
Hi,
You have to properly construct the element.
Take a look at these sections of the manual:
https://docs.djangoproject.com/en/1.10/topics/forms/#rendering-fields-manually
https://docs.djangoproject.com/en/1.10/topics/forms/#looping-over-the-form-s-fields
Take a special look at field
I am tring to create drop down checkbox with values from database in my
templet using bootstrap select and form MultipleChoiceField like this
Html
select class="selectpicker" multiple>
{% for topping in form.the_topping %}
{{ topping.topping_id }}
{% endfor %}
4 matches
Mail list logo