-
Hi, I need to manipulate form fields based on the selected item state. Actually, one of the instance properties passed to the select2 options, it is
So, I assume if it is possible to append select2 options by other details I may get it by
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @codingjoe |
Beta Was this translation helpful? Give feedback.
-
Actually, I found a solution.
urls.py
forms/widgets
|
Beta Was this translation helpful? Give feedback.
Actually, I found a solution.
Choices list being generated in the view. So, to pass extra properties to the choices we need to use modified view
Example how to pass
test
property of the object