#27880: Use __set_name__ to replace some usages of contribute_to_class.
-------------------------------------+-------------------------------------
Reporter: Simon Charette | Owner: Clifford
Type: | Gama
Cleanup/optimization | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: python3.6 | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Clifford Gama):
Note that while `Options.contribute_to_class()` is private API, searching
`/(?-i)Options/ django.db "def contribute_to_class" -path:django/db
path:*py` in GitHub gives about 240 results, some of which implement their
own `Options`. These would need to rename `contribute_to_class()` with
`__set_name__()` as this change is backward incompatible.
--
Ticket URL: <https://code.djangoproject.com/ticket/27880#comment:7>
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/01070192af4e4e80-d86daeed-3e62-43cf-b7dc-5dcf1fe95058-000000%40eu-central-1.amazonses.com.