Empty Dropdown Using ModelSelect2Widget #45
Unanswered
celine-setyawan
asked this question in
Q&A
Replies: 2 comments
-
I have the same problem. Some answer??? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry, I somehow must have missed a notification here. @celine-setyawan do you still have this problem? I see that you use @tow3r91 if you have a similar problem, maybe you could provide some examples too? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, thank you for the opensource, this is my first time using django-select2.
I don't know why my dropdown won't show anything. This is the frontend. I want those 4 fields chained. But they dont even show any data.
'
Seems like I have similar problem like this issue. I've tried the solution but it doesn't work for me. If I remove the widgets=ModelSelect2Widget, my dropdown is populated with data from the DB, so I guess the problem lies with the ModelSelect2Widget. I use django-select2==7.4.2 and django==3.0.7
This is my forms.py
This is my models.py
Do I need to do something with my views.py (beside create and save forms and render to the html) or even create my own .js ?
Thanks before.
Beta Was this translation helpful? Give feedback.
All reactions