[Flask] flask SelectMultipleField save multiselection in database

licence Uni Spé_-_Administarttion Ds Sys Appl asa.lus at gmail.com
Mon May 22 10:33:50 EDT 2017


HELLO,

I use the *SelectMultipleField *function but when I select several values
in my en form I receive this error which comes from my server* MySQL[
(1241, 'Operand should contain 1 column(s)')]*.

 mat_actif = SelectMultipleField('Materiels :', choices = [
('Port USB','Port USB'),         ('Lecteur CD','Lecteur CD'),
('Aucun','Aucun')],)

in my template i use :

{{ wtf.quick_form(form, form_type='horizontal',
horizontal_columns=('lg', 3, 6)) }}

can you help me please. thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170522/66e5eae6/attachment.html>


More information about the Flask mailing list