#35827: Model subclass with __init_subclass__ doesn't get correct _meta instance
-------------------------------------+-------------------------------------
Reporter: Ben Beecher | Owner: (none)
Type: New feature | Status: new
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Clifford Gama):
#27880 by replacing `Options.contribute_to_class()` with
`Options.__set_name__()` allows `_meta` to be added when the model class
is created. If that gets added then `__init_subclass__()` will be
supported.
--
Ticket URL: <https://code.djangoproject.com/ticket/35827#comment:6>
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/010701927aa202dc-be6506c1-ef7a-4993-b203-63649917c76c-000000%40eu-central-1.amazonses.com.