i am new on django and i need your help, trying since many days to understand django-autocomplete-light, after setup my test, http://192.168.0.108:8000/country-autocomplete/
I had the same issue. The problem here is with the widget. Tried to fix it for very long. The only way in worked for me was changing form's widget.
If it doesn't matter that much you can use autocomplete.ListSelect2
instead, it worked for me.
So try this:
class Form_country(forms.ModelForm):
class Meta:
model = Country
fields = ('name', 'code2l')
widgets = {
'name': autocomplete.ListSelect2(
'country-autocomplete'
)
}
Actually you can just try any other autocomplete widget and see weather it works