django-autocomplete-light
django-autocomplete-light copied to clipboard
A fresh approach to autocomplete implementations, specially for Django. Status: v4 alpha, v3 stable, v2 & v1 deprecated.
form.py ``` class STAFFCOUNTDETForm(forms.ModelForm): class Meta: ----- widgets = { 'POSTGODATE': forms.DateInput(attrs={'class': 'form-control', 'type': 'date'}), 'Office_Code': autocomplete.ModelSelect2( url='get_office_code_view', attrs={ 'data-placeholder': '--Select--', 'data-minimum-input-length': 0, 'data-dropdown-parent': '#modal-book', # Set the dropdown parent...
Crossposting from StackOverflow, didn't get any traction there and coming back to this problem. https://stackoverflow.com/questions/77001904/django-autocomplete-light-select2-generates-multiple-selectboxes-for-declarative I was expecting to see a single functioning widget, but instead have two partially functioning...
Hello, I found this unexpected behavior when using `ListSelect2` in a `MultiWidget`. Basically `__init__` breaks if attrs is None. Django `MultiWidget` has the following signature ```python def __init__(self, widgets, attrs=None):...
Today we hit a nasty bug with dal.ModelSelect2 fields where an autocomplete field would receive forwards from a different class which uses the same base class. We traced the error...
Hi, In my project I am using Django 2.1.15, Python 3.11, django-autocomplete-light==3.5.1. `#views.py ``` class RefAutocomplete(autocomplete.Select2QuerySetView): def get_queryset(self): date = self.forwarded.get('date', None) opStart = int(self.forwarded.get('opStart', None)) opEnd = int(self.forwarded.get('opEnd', None))...
Hello. Is anyone using DAL in combination with other widgets in the same form? I have a form in which I use https://pypi.org/project/django-s3-upload/ for image upload. Now, when I try...
Tried with pypi latest version and latest dev git install. I have seen this error a few times from previous searches (such as #790 , so maybe it came back?...
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 Development", max_length=20,default = "None") ProfessionalExperience =...
I'm using DAL in my Django form to generate select multiple field. The problem is I can't able to select one item multiple time. Whenever I try to select one...