Hi.
I am trying to add in a class with the name of autocomplete into one of my select.
class MyForm(ModelForm):
class Meta:
model = MyModel
exclude = ['user']
def __init__(self, user, *args, **kwargs):
super(MyForm, self).__init__(*args, **kwargs)
self.fields['specie'].queryset = Specie.objects.all(attrs={'class':'autocomplete'})
Based on the code above I get all() got an unexpected keyword argument 'attrs'