How to Solve NameError: name 'SelectMultiple' is not defined -- django

Erorr: name 'SelectMultiple' is not defined

NameError: name 'SelectMultiple' is not defined

Solution: Import the 'SelectMultiple' module

# Add the following line to the top of your code
from django.forms.widgets import SelectMultiple

 

For more information:
django SelectMultiple