Questions tagged [django-select2]

Select2 jQuery plugin wrapped to Django Widget

This is a Django integration of Select2.

The app includes Select2 driven Django Widgets.

Select2 is already included to the distribution.

External Dependencies:

jQuery is not included in the package since it is expected that in most scenarios this would already be available.

https://django-select2.readthedocs.io/en/latest/ https://github.com/applegrew/django-select2

64 questions
0
votes
0 answers

Django CreateView using model form with foreign key fields from other models in the createform

Brand new to Django using django 4.2 python 3.11 I have 5 models in all. For simplicity consider default id and name as their fields. Models are Company, Customer, Site, department and equipment. from django.db import models class…
DEV K
  • 1
  • 1
0
votes
0 answers

Django-select2 form selected objects disappeared in django admin panel with dependent_fields

I would like to add dependent fields to my django admin panel its like when you select one company it must be display all roles relative with this company in admin, but my admin looks like that: it not displaying company and roles i can say my all…
0
votes
0 answers

Why is django select2 not showing?

put django-select2 on this and this instruction but select doesn't show what's wrong? cache specified, radish server set. settings.py INSTALLED_APPS = [ ... 'django_select2', ] main urls.py urlpatterns = [ ... path('select2/',…
JopaBoga
  • 157
  • 11
0
votes
1 answer

Issue with how the django_easy_select2 library is initialized or bound to the HTML element that I'm replacing with htmx

I've successfully used htmx to handle a AJAX call to replace part of an django template form. Please see the question I posted on this here Django and HTMX for dynamically updating dropdown list in form.field . But, the form element being replaced…
Banillie
  • 49
  • 9
0
votes
0 answers

Django Select2 Widget bad rendering?

I tried to implement multi select-boxes from select2. The widget works fine, but the user input is under the field. Screen: this how it looks in html.