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
1 answer

Problem when creating a form with both django-autocomplet-light and and bootstrap-datepicker-plus widgets

I am trying to create a form which uses two different widgets: - some fields are using django-automplete-light ModelSelect2 widget - another field is using bootstrap_datepicker_plus DatePickerInput widget However, I can't manage to make them both…
1
vote
1 answer

Get data attribute from custom html result

Let's say I have a simple DAL autocomplete & form rendering custom html results, where the result contain data-attribute. from django.utils.html import format_html class CountryAutocomplete(autocomplete.Select2QuerySetView): def…
Todor
  • 15,307
  • 5
  • 55
  • 62
1
vote
1 answer

How to change django-autocomplete-light number of loaded objs by default?

By default, the ajax behavior in autocomplete queries 10 first objs of the list and by scrolling you would see further next 10 results. But the scrolling doesn't work smoothly so I need to actually see all the result on the list by default. (it's…
1
vote
0 answers

Django AutoComplete Light not working with OneToOne Field

I am trying to add auto-complete for the OneToOneField in Django admin using django-autocomplete-light. This field is available in Django Rest Framework's auth_token model. class Token(models.Model): """ The default authorization token…
1
vote
1 answer

create new does returns 'list' object has no attribute 'create'

I am trying to create a autocomplete input which can create a new object. class CellLineAutocomplete(autocomplete.Select2QuerySetView): create_field = 'cell_line_name' model = CellLine def has_add_permission(self, request): …
T-G
  • 23
  • 1
  • 6
1
vote
0 answers

Django autocomplete light: no input field

I've installed "Django autocomplete light" and now following this tutorial: http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html Here is my code so far: setting.py INSTALLED_APPS = [ 'dal', 'dal_select2', …
Alessio Ferri
  • 345
  • 3
  • 17
1
vote
0 answers

Django Material Autocomplete

Has anyone managed to get an Autocomplete working for Django Material https://github.com/viewflow/django-material? I really like the look of the interface for the admin and all I require is an autocomplete widget to work as my tables are too big. I…
1
vote
1 answer

Django app not updating static files in browser

The static files from third-party apps are not being updated in my Django site when it is served up in a browser with runserver. Here is my file structure (with many more static files): - mysite - mysite - settings.py - wsgi.py . . . …
OverflowingTheGlass
  • 2,324
  • 1
  • 27
  • 75
1
vote
0 answers

Enter text immediately into box for autocomplete

I have a formset with django-autocomplete-light on the full_name field. I want to be able to TAB into the box and type. Currently, however, if I tab into the box, I can't type, it's like a ChoiceField, but if I click on it (or spacebar) it opens up…
Hatshepsut
  • 5,962
  • 8
  • 44
  • 80
1
vote
1 answer

Django_filters with django-autocomplete-light

I am using django-autocomplete-light with django_filters. I looked django-filter with django autocomplete-light, but my autocomplete doesn't work. Models.py: class ProfessionalDevelopment(models.Model): Name = models.CharField("Professional…
1
vote
0 answers

django-autocomplete-light - what JS files to include in my template?

I am going crazy. I just installed django-autocomplete-light and it doesn't seem obvious from the docs (or from existing SO posts or issues on the repo), which js files to include in my template. I have a simple usecase where I want to display a…
Anupam
  • 14,950
  • 19
  • 67
  • 94
1
vote
0 answers

django-autocomplete-light 3.2.1 select_outside_admin

I am trying to use django-autocomplete-light 3.2.1 in my Django (1.10) project with python (3.5) and I found great difficulty in using it. Then I try to follow the live demo shown in the tutorial and pull down all file to my local drive for…
CL. L
  • 237
  • 1
  • 7
  • 22
1
vote
0 answers

How to get members of groups in autocomplete light field in django

I'm using version 2.2.10 I want to display users of a group in autocomplete field. I am able to display all users in autocomplete field when I'm creating group. But in a different scenario I need to list users of that group only when creating…
sumajumd
  • 211
  • 1
  • 3
  • 12
1
vote
1 answer

django-autocomplete-light using SQL Alchemy instead of Django ORM

I would like to use django-autocomplete-light to autocomplete some fields from an external database that cannot be adjusted to conform to the DjangoORM requirements. Therefore I use SQL Alchemy to connect to this db. I cannot find out how to do…
1
vote
0 answers

adding a new record from django-autocomplete-light?

I am trying to add new record from django-autocomplete-light. below I describe how I set it up django-autocomplete-light displays empty dropdown in the form I am reading the docs and a bit confused (I usually use only function views and this is…
Ilya Bibik
  • 3,924
  • 4
  • 23
  • 48