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
1
vote
0 answers

Can I use a reverse relationship in a django-autocomplete-light search filter?

The field I need to search in belongs to a reverse 'diariaviagem' to 'viagem' relationship class DiariaViagem(models.Model): viagem = models.ForeignKey(Viagem, on_delete=models.CASCADE) fonte_pagamento = models.ForeignKey(FontePagamento,…
talesmm14
  • 11
  • 1
  • 2
1
vote
1 answer

Django autocomplete light Select2 widget not appearing

I have been following the DAL tutorial and can access a json object at http://127.0.0.1:8000/entry/river-autocomplete/?q=S So i know my view is working. Beyond that I cannot seem to get anything but the standard widget for ForignKey. From looking at…
1
vote
1 answer

Change django-autocomplete-light html property

1st How do i change a default html property on django-autocomplete-light? 2nd How does django renders the html elements from a form widget? Hi there! I'm using django-autocomplete-light v3. 1st I will show you how to understand my problem 2nd…
1
vote
1 answer

Django autocomplete-light ModelSelect2Multiple select a valid choice error

I keep getting "Select a valid choice. 'X' is not one of the available choices." where 'X' is the primary key of the profile when I submit the create team form after filling in team name, selecting game and team members. I have been trying to create…
1
vote
1 answer

django-autocomplete-light template not rendering autocomplete widget

I am trying to make a search field on my homepage where you search entries by tag, and within that search field as you type in letters it should suggest you tags that contain what you have typed so far. I am using django-taggit for tags. I have…
1
vote
1 answer

Django Taggit - Autocomplete Light (Guidance with configuring)

I have Taggit fully up and running and would like to configure Autocomplete Light in order to enable the Select2 dropdown when users select their preferred tags within my application. I have installed DAL, dal_select2 along with…
Jarjar95
  • 117
  • 2
  • 10
1
vote
0 answers

django-autocomplete-light ModelSelect2Multiple not showing up

My autocomplete field shows and works perfectly on the admin page, but when trying to generate it out of the admin, it shows as a thin vertical line. How can I fix this issue? forms.py def student_form(request): if request.method == 'POST': …
1
vote
0 answers

{{ form.media }} adds jquery.min.js between different servers

I have 2 servers and 2 different interpretations of {{ form.media }}
Ruben
  • 1,065
  • 5
  • 18
  • 44
1
vote
0 answers

How to make a selection in django-autocomplete-light using jquery?

I want to make a selection of an option in django-autocomplete-light using Jquery. I tried $(selector).val(value).trigger('change'). But bot working. Any suggestions. I am using dev version dal 3.7.0.dev0
1
vote
1 answer

django-autocomplete-light's suggestions displayed beyond the drop-down list

For some reason, suggestions from django-autocomplete-light 3.5.0 are displayed beyond the drop-down list, to the right (there's narrow blue rectangle visible that indicates suggestions): I'm able to reverse the widget's url and obtain correct…
1
vote
1 answer

Django Autocomplete Light create_field Not Working

I really want to be able to use the django-autocomplete-light to enable users to create new Franchise names when they use the autocomplete box. I have set this up, but I don't get the option to create. I can see in the documentation about adding…
1
vote
1 answer

How to use django-autocomplete-light on form with multiple charfields

I have installed django-autocomplete-light. My form without autocomplete looks like this: class FilterForm(forms.Form): form_origin = forms.CharField(label='From country', max_length=100, …
JLi
  • 165
  • 1
  • 8
1
vote
1 answer

How to use Select2 in Django custom SimpleListFilter

I've created a custom SimpleListFilter class (code below) and managed to have the options be displayed as a select input. What I'd like to add is the functionality that Select2 offers, namely being able to search for options within the select…
1
vote
0 answers

Initial Value of Select2Multiple widget

I am working on a searchinput with additional parameters given through a django autocomplete light Select2Multiple widget. class SearchParameterForm(forms.Form): p = forms.MultipleChoiceField( …
PythonF
  • 456
  • 1
  • 5
  • 21
1
vote
0 answers

Django Autocomplete Light is not working with Django Filters

I am trying to use Django autocomplete light with Django filters. I've written the following codes. And also tried different solutions, but nothing is working for me. An empty list is shown in the dropdown. settings.py INSTALLED_APPS = [ 'dal', …