1👍
✅
from pip import autocomplete
How is this related to the functionality you’re trying to add? Pip is the program that installs python packages for you and this is just a utility function.
You’re then for some reason trying to get a ModelSelect2
object from this function?
I think you just messed up your imports and what you want to use is django_select2.forms.ModelSelect2Widget
(assuming you’re using django-select2
).
Source:stackexchange.com