-1

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?

Mike Szyndel
  • 10,461
  • 10
  • 47
  • 63
pedi
  • 13
  • 2

1 Answers1

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