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
2
votes
2 answers

DAL-yl is not defined

I am trying to implement autocomplete following django-autocomplete-light tutorial And I could confirm that Autocomplete view was created successfully typing url directly as below. However, when I test using form view, autocomplete is not working…
Katsuya Obara
  • 903
  • 3
  • 14
  • 30
2
votes
2 answers

Error adding more fields with django-autocomplete-light

I have a problem and I am using 2 libraries : django-autocomplete-light and django-dynamic-formset. The 2 are very good at doing their job. The first is used to do autocomplete and the second to make django formsets are dynamic. but when you want to…
2
votes
1 answer

Autocomplete field not rendering in django-autocomplete-light formset

I'm trying to autocomplete a foreign key field, but I am following the steps in the documentation and cannot get it to work . Views: class ProductoAutocomplete(autocomplete.Select2QuerySetView): def get_queryset(self): qs =…
Piero Pajares
  • 276
  • 1
  • 4
  • 21
2
votes
0 answers

Django Autocomplete Light Empty Select Box

Why does implementation of django-autocomplete-light result in an empty dropdown box? I think it may either be with loading static files or mapping to urls.py incorrectly. EDIT: do I need to collect the static files used by dal somehow? With…
OverflowingTheGlass
  • 2,324
  • 1
  • 27
  • 75
2
votes
0 answers

Django django-autocomplete-light not showing results

I want to learn python and web-dev and I am trying to make a functional web application. Right now I have problem with django-autocomplete-light. I am trying to use autocomplete for my django application. I followed the tutorial, but when I try to…
2
votes
1 answer

Django Autocomplete Light override html options to return custom value

I am starting to use DAL, but I cannot use the default behavior that set the value to the PKs of the objects in my queryset. So I overriden the 'get_result_value' function to set a custom field as the value of my options. class…
MiniYuuzhan
  • 108
  • 3
  • 14
2
votes
0 answers

How to overwrite js to create records with modal in django-autocomplete-light 3.2.8

I need to overwrite the javascript code of the library "django-autocomplete-light" to open a modal when the user selects the option to create. The installed libraries are: Django==1.11 django-autocomplete-light==3.2.7 And my code is: class…
direyes
  • 53
  • 4
2
votes
1 answer

In django: Problems with loading jquery with multiple plugins - or: How to load jQuery only once?

I use django (1.8.16) with a ton of plugins ("apps"). Some are: django-ckeditor==4.5.1 django-image-cropping==1.0.3 django.contrib.admin django-jquery==3.1.0 I want to use django autocomplete-light (dal for short) (3.2.1, current version) in the…
mogoh
  • 992
  • 2
  • 7
  • 27
2
votes
1 answer

Django autocomplete select does not work when deployed

I deployed an app in Pythonanywhere, and the Django autocomplete light for the admin page isn't being loaded, However when I run the app in the local host it works. For it to load, I need to set where the static files for the DAL…
Goun2
  • 417
  • 1
  • 11
  • 22
2
votes
0 answers

django-admin-bootstrapped conflicts with django-autocomplete-light with error: $("[title]").tooltip() is not a function

I'm setting up a django site using django-autocomplete-light (v3); however, when I add django-admin-bootstrapped, the following error occurs: $('[title]').tooltip(); tooltip is not a function. I installed dal and dal_select2 before…
2
votes
1 answer

How to use Django-autocomplete-light for foreign key in the admin

I've been struggling to add an autocomplete to django admin fk fields, I've come across this third party app, Django-autocomplete-light, but its docs are very confusing for beginner like me. So, I have my model, and how could I add an autocomplete…
Goun2
  • 417
  • 1
  • 11
  • 22
2
votes
2 answers

Fill two other fields of a formset depending on autocomplete selection

I would like to fill two other fields automatically depending upon the selection someone makes in an autocomplete field, using django-autocomplete-light. However, my java script is not that good, so I don't really know where to start. Any help is…
2
votes
2 answers

Django Autocomplete Light - FK Field Results not Forwarding

I'm following along in the DAL documentation to add a filtered field to my form, but the forwarding isn't working to connect one field to the other: Forms.py class PurchaseForm(forms.ModelForm): commodity = forms.ModelChoiceField( …
Adam Starrh
  • 6,428
  • 8
  • 50
  • 89
2
votes
1 answer

django-filter with django autocomplete-light

I've been using simple DAL, and django-filter separately but I'm having trouble using DAL with django-filter. I've read this page : django-filter with django autocomplete light but I'm still confused. I have filter class like this below, and I want…
rifaiz
  • 39
  • 2
  • 9
2
votes
3 answers

Verbose_name and helptext lost when using django autocomplete light

I have the below model that includes a field called boxnumber When i don't use DAL, the verbose_name and help_text appear and get translated when needed. But when adding DAL (see modelform below), it only shows the name, not translated and with no…
Yarh
  • 895
  • 7
  • 15