Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search_field implementation #226

Open
openHBP opened this issue Mar 7, 2019 · 0 comments
Open

search_field implementation #226

openHBP opened this issue Mar 7, 2019 · 0 comments

Comments

@openHBP
Copy link

openHBP commented Mar 7, 2019

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

  1. the call to the api must be changed: no more brackets: var table = datatable.api;
  2. 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'
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant