File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
reference/forms/types/options Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,14 @@ in HTML and submitted in the POST/PUT requests. You don't normally need to worry
11
11
about this, but it might be handy when processing an API request (since you can
12
12
configure the value that will be sent in the API request).
13
13
14
- This can be a callable or a property path. See `choice_label`_ for similar usage.
15
- If ``null`` is used, an incrementing integer is used as the name.
14
+ This can be a callable or a property path. If ``null`` is given, an incrementing
15
+ integer is used as the value.
16
+
17
+ .. note::
18
+
19
+ In contrast to other choice options (e.g. `choice_label`_), the callable for
20
+ the ``choice_value`` option takes as **only** argument the actual choice, which
21
+ is also the value that gets passed to your model when submitting the form.
16
22
17
23
.. caution::
18
24
You can’t perform that action at this time.
0 commit comments