diff options
| author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2018-05-25 20:53:13 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-05-25 15:10:45 -0400 |
| commit | 4c35a173e881deaff17e5343181dcbc36177a4af (patch) | |
| tree | ce3365ce13292919f758279c9fcc5dc13c3734d4 /docs/ref | |
| parent | 738a0a4dc289d7a9c67199687519712ca0bfafd1 (diff) | |
Fixed #29423 -- Documented Field.value_from_object().
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/fields.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index c696b770b3..5fc785fb18 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1857,6 +1857,12 @@ Field API reference Besides saving to the database, the field also needs to know how to serialize its value: + .. method:: value_from_object(obj) + + Returns the field's value for the given model instance. + + This method is often used by :meth:`value_to_string`. + .. method:: value_to_string(obj) Converts ``obj`` to a string. Used to serialize the value of the field. |
