django-autocomplete-light Questions

3

Solved

I am pretty new to django and its ways. I am trying to create an autocomplete field for a form. My code is as below forms.py from django import forms class LeaveForm(forms.Form): leave_list = (...
Cottager asked 16/5, 2018 at 22:24

3

Solved

I have been working through the following tutorial provided for Django Autocomplete Light: https://django-autocomplete-light.readthedocs.io/en/master/tutorial.html I have successfully implemente...
Staphyloplasty asked 17/11, 2018 at 16:29

2

I have successfully setup the Autocomplete Registry and have my django admin forms where if you go to the form, the auto completes works. I would like to be able to extend the autocompletes to work...
Etruscan asked 14/2, 2016 at 6:5

2

Solved

I've installed "Django autocomplete light" and now following this tutorial: https://django-autocomplete-light.readthedocs.org/en/master/tutorial.html Here is my code so far: setting.py INSTALLED...

1

Solved

I have a choice field with lot's of data, I have created drop down at admin panel but I want to have a searchable drop down. class ItemForm(forms.ModelForm): def __init__(self, *args, **kwargs):...

2

Solved

I'm facing the following situation: I have a django project, which uses an outside app [App1]. Within App1, it has the following structure: abstract class 'Base': class Base(models.Model): """ ...
Chlorella asked 30/4, 2018 at 3:57

2

I want to add an another autocomplete field to my model.form. However, as soon as I add the autocomplete widget for the field "projektnummer" 'projektnummer': autocomplete.ModelSelect2(url='outp...

2

Solved

I was having trouble while using dal and tried to build a simple example. I did almost the exactly the same as Django autocomplete light: field not populated and also applied the answer of the lin...
Elenor asked 26/7, 2016 at 8:59

1

I have a form field with autocomplete (using django-autocomplete-light app and Select2 widget), which serve as a search filter and it works as expected. When I submit the form and search results a...
Inverse asked 23/3, 2017 at 11:44

2

Solved

I'm trying to pass some data along to the autocomplete_light.AutocompleteModelBase so I can exclude some models from the search. I'm trying to use the Dependencies info in the docs here but I can ...
Isomerize asked 20/8, 2014 at 15:56

2

Solved

How do I use django_autcomplete_light to add autocomplete to one field in a form. I have a form which is based off of a model, and I want to add autocomplete to the firstname field. I have done th...
Crewelwork asked 24/7, 2015 at 18:23

1

Solved

I am trying to use django-autocomplete-light From this tutorial https://github.com/yourlabs/django-autocomplete-light/blob/master/docs/tutorial.rst I Installed it with pip and added it to my setti...
Tessitura asked 13/11, 2016 at 12:52

1

I have a model for countries: class Country(models.Model): name = models.CharField(max_length=200) def __str__(self): return self.name That is referred by a foreign key in the UserDetails m...
Hite asked 23/10, 2016 at 17:54

2

Solved

I am using django-autocomplete-light in a form for a model I want to use autocomplete on one of its field. the field is not a foreignkey or something, but just a integer field and for autocomplete...

1

Solved

I'm using django-autocomplete-light with django 1.8. It sometimes fails. Here is the javascript console error: TypeError: $(...).select2 is not a function ;(function ($) { $(document).on('aut...
Augmented asked 10/5, 2016 at 15:58

1

I have a working implementation of autocomplete_light in my django project, pulling values from cities_light in a dropdown, which correctly saves the foreign key to the field in the db on form subm...
Morula asked 4/1, 2014 at 21:24

1

Solved

I am trying to understand how to use django-autocomplete-light for an existing project. This seems like a good autocomplete solution for django for which I am already using normal ModelChoiceFields...
Cohobate asked 23/1, 2013 at 7:25
1

© 2022 - 2024 — McMap. All rights reserved.