-
Hi, I'm trying out the select2 example, but I want to use a 'multiple' field. The trouble is that it doesn't look like Unicorn.call handles arrays? onchange="console.log($(this).val()); Unicorn.call('select2_country', 'select_country', $(this).val());" Causes a 500 error ValueError: malformed node or string: <ast.Name object at 0x7f8945e6b0a0> Not sure if I've just gone down the wrong path here. I couldn't find anything in the documentation around this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For now I've worked around it with varargs in the Python method and using JS spread: Doesn't look like the Unicorn.call function supports anything more than basic string interpolation.
|
Beta Was this translation helpful? Give feedback.
For now I've worked around it with varargs in the Python method and using JS spread:
onchange="console.log($(this).val()); Unicorn.call('select2_country', 'select_country', ...$(this).val());"
Doesn't look like the Unicorn.call function supports anything more than basic string interpolation.