Questions tagged [django-autocomplete-light]

django-autocomplete-light is an open source app that provides a new approach to auto-complete implementations, specially for Django.

django-autocomplete-light is an open source app that provides a new approach to auto-complete implementations, specially for . It ships its own auto-complete script, which is different because:

  • it expects the auto-complete to be rendered on the server side, which makes any kind of customization much simpler,
  • it doesn't take any action when a choice is selected. Instead it just triggers a event, which makes it usable for any kind of purpose.

It is also called django-autocomplete-light because the Python API relies on Django widgets and no hack. This makes it portable and usable in any Django form, including in the admin.

Resources

Resource list is maintained in the README.

303 questions
0
votes
1 answer

django-autocomplete-light with User - choices should be a queryset

I can't seem to make django-autocomplete-light work with the django contrib user model. Always get exception 'choices should be a queryset' This is my autocomplete class (defined in autocomplete_ligh_registry.py): import autocomplete_light from…
Tiago A.
  • 1,392
  • 1
  • 16
  • 26
0
votes
2 answers

How to deselect all choices of the django-autocomplete-light widget via javascript?

I need to clear an already selected value of the django-autocomplete-light widget via javascript (or may be reload the widget, if it is more simple). How can it be done? Thanks.
maremare
  • 414
  • 1
  • 4
  • 19
0
votes
1 answer

SelectMultipleHelpTextRemovalMixin yields "Cannot create a consistent method resolution"

I'm using Django 1.6 with django-autocomplete-light 2.0.0a15 and am trying to remove the Hold down "Control", or "Command" on a Mac, to select more than one. string in my forms. According to the documentation…
SaeX
  • 17,240
  • 16
  • 77
  • 97
0
votes
0 answers

How to display autocomplete in django-autocomplete-light 2.0.0a15?

I recently updated my django-autocomplete-light from version 1.2.3 to 2.0.0a15. I followed the tutorial what's need to do for the upgrade but still my autocomplete don't show up. The autocomplete are working fine in the previous…
0
votes
1 answer

Get value of form field before it's submitted

I have a Django form. One of the fields (monitoring_method) uses an autocomplete-light widget that filters the results based on the entry in another field (database_type). Is there any way to get the user-entered value in the database_type field…
thumbtackthief
  • 6,093
  • 10
  • 41
  • 87
0
votes
1 answer

django-autocomplete-light and get_widgets_dict

First I'd like to say that I think the autocomplete_light package is a nice, well maintained package but I am having some issues with it as a relative novice. I upgraded my version of autocomplete_light using 'pip install…
jayuu
  • 443
  • 1
  • 4
  • 17
0
votes
2 answers

Autocomplete a specific set of possibilities in Django-admin

I have a field in a Django model, and I want there to be a small (~20) set of possibilities (which are strings) which can be autocompleted (preferably with django-autocomplete-light, which I am using already) in django-admin. Should I make this a…
0
votes
1 answer

django autocomplete-light template plus sign

Newbee here. I'm using django-autocomplete-light for my foreign field key in django admin. It's working great. But once I selected an item the plus sign is thrown below the item. Is there a way for the plus sign to stay in line with the selected…
0
votes
1 answer

Use autocomplete light with django-tables2

I'm trying to populate a django table with autocomplete light so that the user can fill in data in the table, which would then be saved (the whole table is in a form tag). I have the table working to display the existing data and I have the…
thumbtackthief
  • 6,093
  • 10
  • 41
  • 87
0
votes
1 answer

problems integrating django-autocomplete_light with django-taggit

I'm having a hard time integrating them together, when accessing '/autocomplete/CartaoAutocomplete/' I get "Related Field has invalid lookup: icontains". Relevant code: models.py class Cartao(models.Model): ... tags =…
user1182765
0
votes
3 answers

Programmatically select the first suggestion in django-autocomplete-light

How can I select the first given option? I'm feeding the autocomplete widget with the data from reverse geocoding results (city) basing on user's location. I have a database with cities and I need to select the first suggested…
0
votes
2 answers

django-autocomplete-light on fetch data

autocomplete-light. Can any one help me. I want to show button 'add' if autocomplite return nothing (Object does not exists yet). Where can I check what get autocomplite from back-end. Something like this $('#myauto_field').yourlabsAutocomplete({ …
Bahtiyor
  • 1
  • 1
0
votes
1 answer

django-dynamic-formset and django-autocomplete-light - autocomplete does not work properly for new rows

I use autocomplete-light with django-dynamic-formset. For dynamically added rows autocomplete does not work - it shows popup with autocomplete, but sticks it to last statically created row. If I choose item in list - it inserts value into last…
chkur
  • 13
  • 5
0
votes
1 answer

django-autocomplete-light giving javascript errors

I'm using django-autocomplete-light to render some autocomplete options. I have a place on the website that it works without a hitch, but there is another place, where it does not work, actually it works partially. The autocomplete options renders…
George Silva
  • 3,454
  • 10
  • 39
  • 64
-1
votes
2 answers

How to use a form with autocomplete fields in django admin update action

I am using a custom form in admin panel with two autocomplete fields among the others. My problem is that I don't know how to use the form in update action in order the stored data to appear with the autocomplete functionality. In my implementation…
gtopal
  • 544
  • 1
  • 9
  • 35
1 2 3
20
21