Closed smitty1788 closed 6 years ago
I used the JS adjustments made in the JS Lint branch. That branch seems to have solved the issues and the smart select is working as intended.
+1
I installed "JS Lint branch" using pip install git+https://github.com/jazzband/django-smart-selects.git@js-unlinting-fixes
, now smart selects works in my Admin page
Buenas!, esto me sigue pasando incluso usando la ultima version :c
Checklist
Put an
x
in the bracket when you have completed each task, like this:[x]
master
branch of django-smart-selects.smart_selects
app.models.py
,forms.py
, andviews.py
with problems.Steps to reproduce
models.py
forms.py
views.py
base.html
econ_writeups.html
urls.py
Actual behavior
I trying to use django-smart-select to have a user select a state in the first dropdown and have the secondary dropdown populate with all Metro Statistical Area(CBSAs) within that state. Currently, when I select a state no options populate.
However, if I specify show_all=True in the ChainedForeignKey, it will populate with the options (only a few test options below).
My question is why wont the show_all=False update my MSA(CBSA) dropdown to only show chained records? I have inspected the page in chrome when running the development server and no JS errors are present.
Expected behavior
If a state is selected, only the MSA(CBSAs) that are within that state will populate in the MSA dropdown. Example: DC would populate "Custom Area". Delaware would populate "Custom Area" and "Philadelphia MSA".