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

Auto-completion #147

Open
lluc opened this issue Oct 19, 2016 · 3 comments
Open

Auto-completion #147

lluc opened this issue Oct 19, 2016 · 3 comments
Labels

Comments

@lluc
Copy link
Contributor

lluc commented Oct 19, 2016

Which type of field can have an auto-complete feature ?
What can we do use it ? Is it in the Javascript source or in Python source ?

Thanks.

@lluc
Copy link
Contributor Author

lluc commented Nov 2, 2016

I found an interesting part of code in the file https://github.com/Parisson/Telemeta/blob/master/telemeta/static/telemeta/js/advanceSearch.js#L104
with function activate_autocomplete(selector, attribute).
Unfortunately, it doesn't run proprely when I use it in the form to edit an item. :-(
There is this error :
Uncaught TypeError: Cannot read property 'opera' of undefined in jquery.autocomplete.js:83.

@yomguy
Copy link
Member

yomguy commented Nov 2, 2016

I'm afraid the auto-complete feature of the search engine is made only for queries through the ElasticSearch wrapper based on Haystack. I suggest to try some frontend interfaces linked to django-auto-complete-light, maybe like this one : https://github.com/novafloss/django-agnocomplete

@lluc
Copy link
Contributor Author

lluc commented Nov 3, 2016

It's not a good idea : requirement for django-agnocomplete is Django 1.8 or Django 1.9 . 👎
So, waiting the next version of Telemeta, is why I want to use a code similar to your code in the function activate_autocomplete.

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

No branches or pull requests

2 participants