We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9d02bc commit 5356c7cCopy full SHA for 5356c7c
docs/extra.rst
@@ -27,10 +27,11 @@ Here are our two models:
27
Customizing a Form
28
``````````````````
29
30
-Lets link two widgets via *dependent_fields*.
+Lets link two widgets via a *dependent_fields* dictionary. The key represents the name of
31
+the field in the form. The value represents the name of the field in the model (used in `queryset`).
32
33
.. code-block:: python
- :emphasize-lines: 15
34
+ :emphasize-lines: 17
35
36
class AddressForm(forms.Form):
37
country = forms.ModelChoiceField(
0 commit comments