Questions tagged [django-smart-selects]
36 questions
4
votes
1 answer
Chained Selects in Django [Module: django-smart-selects]
I'm trying to use the django-smart-selects Module in order to create dependent dropdown lists. I've followed the documentation and defined models in which I used the 'ChainedForeignKey' in order to define a link between my companies and my…

Copp
- 83
- 1
- 12
2
votes
1 answer
Django Smart Selects not working for django admin
So I'm trying to implement django-smart-selects 1.5.9 for django 1.11.4 and somehow the chained keys dont work the way they should.
models.py
class Province(models.Model):
name = models.CharField(
max_length=30
)
class Meta:
…

Anee Mes
- 27
- 9
2
votes
0 answers
Django admin's default autocomplete_fields combined with Chained Foreign Key of smart-selects
I am using Django 2.1.3, django-smart-selects 1.5.4 and three simple models for example Client, Billing Account and Order.
What needs to be done is upon Order creation the user should choose a Client (presuming that the count of all registered…

rollingthedice
- 1,095
- 8
- 17
2
votes
1 answer
Object Names not displaying in Admin
Can anyone help me fix why category names are not displaying in my admin console? I am trying to use smart_selects but it seems as though something is not setup correctly. I am using django 1.9, python 2.7
Here is my models.py
from __future__…

NA Peters
- 259
- 4
- 15
2
votes
1 answer
How to apply DEBUG to the django admin forms fields?
I am working with fields in a model in which the value of a field depend of a selected option in a previous field in a form (for the moment via django administrator), by which I am using django-smart-selects
I would share this video for a better…

bgarcial
- 2,915
- 10
- 56
- 123
2
votes
1 answer
How to limit ForeignKey field to another model FK depending on value
I have the following models in Django, and using smart-selects:
class Country(models.Model):
name = models.CharField(max_length=100)
class Province(models.Model):
name = models.CharField(max_length=100)
country =…

Ahmad Alzoughbi
- 474
- 1
- 5
- 14
2
votes
0 answers
Django chained select not populating dropdown
New to django - trying to get smart_selects working but the dropdown fields don't seem to be populating on the form.
I've trawled the web for answers and read the few similar questions on stackoverflow but none suggest a working answer for the…

Liz
- 1,421
- 5
- 21
- 39
1
vote
1 answer
Cannot import django-smart-selects
I wanted to use the django smart select library to create related dropdowns. I did everything as indicated in the library documentation, but an error occurs:
import "smart_selects.db_fields" could not be resolved Pylance(reportMissingImports)…

Oleksandr Lager
- 23
- 5
1
vote
0 answers
django-smart-selects not working properly with jquery.formset.js django
I am a beginner in django. I have created a form using inlineformset_factory with jquery.formset.js library for increasing rows. The price field uses django-smart-selects where depending on the product selected, the available prices are populated in…

Kobby Essien
- 11
- 1
1
vote
3 answers
Reverse for 'chained_filter' not found. 'chained_filter' is not a valid view function or pattern name Django admin
I working on a project where I need to add two dependant dropdowns for that I tried to use Django-smart-selects but I having an issue. Here's what I did
Here is my models
class District(models.Model):
name = models.CharField(max_length=100,…

Satyendra Chauhan
- 338
- 3
- 13
1
vote
0 answers
Django smart selects is not working properly
I try to chain four categories with django smart select but it does not work properly. Django does not take or input values from in the last one. clothing_size. It is working properly till clothing sizes. That selectbox is always empty. My…

edd
- 13
- 4
1
vote
0 answers
Chained dropdown issue with django-smart-selects
I'm at my wit's end. I've scoured stackoverflow for similar issues to no avail and eventually gave up on resolving the issue.
I've built a pet project in django that uses an input form to search a SQLite database to convert lunar dates into…

R. Hsu
- 33
- 5
1
vote
1 answer
Django smart select many to many field filter_horizontal/filter_vertical does not allow chaining
Hi I am doing a project in Django 1.10. For this project I am using django-smart-select for chaining input in the admin panel.
It works fine. But for many to many fields chaining if I use filter_horizontal/filter_vertical then the chaining does not…

Al-Alamin
- 1,438
- 2
- 15
- 34
0
votes
0 answers
Django smart select doesn't work with Django CSP
I admit that I am truly a beginner in this area.
I made a database driven website with django.
Models.py:
from django.db import models
from smart_selects.db_fields import ChainedForeignKey
# Create your models here.
class Company(models.Model):
…

GM02
- 15
- 4
0
votes
0 answers
django-smart-selects un-selects values when editing
I have a django web site which uses django-smart-selects. In one of my models (for a coin which the user can add to a collection), the chained foreign keys are several levels deep:
class CollectionMember(models.Model):
country =…

Pavel Kalinov
- 11
- 3