I'm trying to use multiselectfield
in Django although I installed it with pip install django-multiselectfield
and put it in my INSTALLED_APPS
but I can't import it in my forms.py file... what can i do?
Asked
Active
Viewed 32 times
-1

Mike Szyndel
- 10,461
- 10
- 47
- 63

pedi
- 13
- 2
1 Answers
0
multiselectfield should be added on models.py. After creating the MultiSelectField on your model, you can loop it in your form ( See django-multiselectfield Docs)
Alternatively, CheckboxSelectMultiple might help: https://stackoverflow.com/a/15393771/12958385

Carlo Angelo
- 21
- 2
-
it doesn't make any difference i can't import it ,my interpreter can't recognize it – pedi Apr 05 '23 at 10:49
-
Sorry for the wrong link. CheckboxSelectMultiple is widget in form: https://stackoverflow.com/a/15393771/12958385 – Carlo Angelo Apr 05 '23 at 11:31