Skip to content

Commit 5356c7c

Browse files
YPCrumblecodingjoe
authored andcommitted
Clarify the key-value pair for the dependent_fields docs.
1 parent b9d02bc commit 5356c7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/extra.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ Here are our two models:
2727
Customizing a Form
2828
``````````````````
2929

30-
Lets link two widgets via *dependent_fields*.
30+
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`).
3132

3233
.. code-block:: python
33-
:emphasize-lines: 15
34+
:emphasize-lines: 17
3435
3536
class AddressForm(forms.Form):
3637
country = forms.ModelChoiceField(

0 commit comments

Comments
 (0)