--
Ticket URL: <https://code.djangoproject.com/ticket/21698>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
The fact that models are registered is a private implementation detail
that isn't described anywhere in the documentation.
What would be the intended effect of public APIs?
--
Ticket URL: <https://code.djangoproject.com/ticket/21698#comment:1>
Comment (by mitar):
This is related in some way to #21699. So there are two ways to allow
making custom subclasses of models which should not be registered. One is
to somehow allow some configuration in `Meta` (#21682), another is to call
current metaclass which adds it, but be able to remove it from registry
immediately afterwards (a bad side-effect is that registration signal has
been already made).
--
Ticket URL: <https://code.djangoproject.com/ticket/21698#comment:2>
* status: new => closed
* resolution: => wontfix
Comment:
Let's keep the discussion in #21699 -- I'd rather not split it across two
tickets.
The provisional answer to this particular request is "there's no public
API to register or unregister models with the app registry".
--
Ticket URL: <https://code.djangoproject.com/ticket/21698#comment:3>