#35772: Document models.Field.contribute_to_class
-------------------------------------+-------------------------------------
Reporter: Clifford | Owner: Clifford Gama
Gama |
Type: | Status: assigned
Cleanup/optimization |
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords: contribute_to_class
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In
`models/fields/__init__.py`[https://github.com/django/django/blob/9ca1f6eff6f19d1ae074d289c6c4209073351805/django/db/models/fields/__init__.py#L957-L958]
and in the
docs[https://docs.djangoproject.com/en/5.1/ref/models/instances/#django.db.models.Model.get_previous_by_FOO],
it is suggested that a user may override `Field.contribute_to_class`, but
this method is not documented anywhere in the docs. IMHO, it should find a
place here [https://docs.djangoproject.com/en/5.1/howto/custom-model-
fields/] or here [https://docs.djangoproject.com/en/5.1/ref/models/fields
/#field-api-reference] or both.
--
Ticket URL: <https://code.djangoproject.com/ticket/35772>
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/0107019205020769-50a5803e-e8fb-4f58-8dcd-8019bd73a096-000000%40eu-central-1.amazonses.com.