Category : django-autocomplete-light

I get this error when I want to filter by an item. "Select a valid choice. 37537 is not one of the available choices." I think the problem is with the ComparisonFilter class but i can’t figure out what the problem is. models class Drug(models.Model): name = models.CharField(max_length=255, null=True, blank=True) classification_code = models.CharField(max_length=255, null=True, blank=True) ..

Read more

I have 404 in Admin suggest with error ApartmentPromotionAdmin must have search_fields for the autocomplete_view. My admin organized as follows from string import Template from dal import autocomplete from django import forms from django.contrib import admin from django.contrib.admin.widgets import AutocompleteSelect from django.forms import widgets class ApartmentAdmin(admin.ModelAdmin): form = ApartmentForm list_display = ("id", "address", "apartment_number", "owner") ..

Read more

I’m trying to implement django-autocomplete-light and django-addanother for the same field in a ModelForm. I’ve tried the following: import floppyforms.__future__ as forms from .models import Worker from dal import autocomplete from organizations.models import Hub from django.urls import reverse_lazy from django_addanother.widgets import AddAnotherWidgetWrapper from django.forms import MultiWidget class WorkerCreateForm(forms.ModelForm): class Meta: model = Worker fields = ..

Read more

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 dal_queryset_sequence libraries. I already have a form created where my users can simply upload a photo, add content ..

Read more