#31368: Missing documentation for `from_db_value`
-------------------------------------+-------------------------------------
Reporter: Paolo | Owner: nobody
Lammens |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 3.0
Documentation | Keywords: documentation,
Severity: Normal | missing
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The documentation on the semantics and usage for the `expression`
parameter in the
[https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.Field.from_db_value
`from_db_value` converter] is nowhere to be found.
The only two places that mention this method are the
[https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.Field.from_db_value
Model field reference] and the
[https://docs.djangoproject.com/en/3.0/howto/custom-model-fields
/#converting-values-to-python-objects "Writing custom model fields"
guide], but neither mention what `expression` is or how it should be used.
In fact, there is no specification for `value` or `connection` either, but
at least the meaning of these parameters can be inferred.
See also: https://stackoverflow.com/q/60560775/6117426
--
Ticket URL: <https://code.djangoproject.com/ticket/31368>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.e966c240e6dc75fc14fbd710df4dd0e2%40djangoproject.com.