Closed albixhafa closed 4 years ago
Thanks @xhaxhi, I'd say this is already fixed in this PR: https://github.com/jazzband/django-smart-selects/pull/290
Maybe you want to try it out.
This is the wrong place to ask but how come there in not a single piece of documentation on ChainedModelChoiceField ? how are we supposed to use this on templates?
@xhaxhi well yes, your question is about a different issue. Anyway, ChainedModelChoiceField
is a form field, it is used automatically when you define a ChainedForeignKey
, documentation for ChainedForeignKey
is on the README.md file.
Please open a different issue if you need more help on this. Also, please explain what are trying to do and/or the error problem you are facing.
If the original issue (import error) is fixed for you, please consider closing it.
I installed it on Django 2.2.9 with no issues and I am assuming its not compatible with Django 3 yet. Works perfectly on the admin with the documentation provided but I cant get it to work on forms.py since there is no documentation :(
I finally figured it and it works for Django 2.2.9!! In order to use it in forms i took the following steps : 1) go to file venv/lib/python3.7/site-packages/django/forms/boundfield.py 2) go to line 93 and comment out
Btw what is the official Django release supported by the latest version of smart selects 1.5.4?
0
Installed django-smart-selects (pip install django-smart-selects) and is not working on django version 3.0.1
I configured using the official installation guide.
Snippets of code
models.py
settings.py