You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also.. in the starting examples of 'AutocompleteModelView' the attribute 'value_fields' is not mentioned, leading to field data not being provided by endpoints, and the TS listing pages but with undefined labels. Left me scratching my head for a while.
from django_tomselect.autocompletes import AutocompleteModelView
class PersonAutocompleteView(AutocompleteModelView):
model = Person
search_lookups = ["full_name__icontains"]
from django_tomselect.autocompletes import AutocompleteModelView
class PersonAutocompleteView(AutocompleteModelView):
model = Person
search_lookups = ["full_name__icontains"]
value_fields = ["id","full_name"]
Hi,
Starting to explore your project.
Just tough to warn you that I think you might have a typo on the documentation at:
https://pypi.org/project/django-tomselect/
At:
I think you mean:
Otherwise it raises an error; seems to be correct at: https://django-tomselect.readthedocs.io/en/latest/usage.html
The text was updated successfully, but these errors were encountered: