search_field implementation
openHBP opened this issue · 0 comments
openHBP commented
Would you please have a look to my answer and contribution to https://stackoverflow.com/questions/54740133/data-table-not-populating-data-in-django-datatable-view/55047474#55047474
- the call to the api must be changed: no more brackets: var table = datatable.api;
- when I try to run your example I get the following error "ModuleNotFoundError: No module named 'django_datatable_view'. And it is the same when I change it to ''datatableview'
- how does the search field should be implemented?
When I type in search field it I get an error:
ModuleNotFoundError: No module named 'datatableview'
DataTables warning: table id=DataTables_Table_0 - Ajax error. For more information about this error, please see http://datatables.net/tn/7
I understand it returns a 500 server error:
FieldError('Related Field got invalid lookup: {}'.format(lookup_name))
django.core.exceptions.FieldError: Related Field got invalid lookup: icontains
This happens when using standard queryset lookup like "title__name". Do I have to add 'django-filters' into the settings apps?
Many thanks for this magic app but the doc is misleading and not clear.