--
Ticket URL: <https://code.djangoproject.com/ticket/21682>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: mmitar@… (added)
Comment:
Could here be also added that you do not want a model to be registered?
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:2>
Comment (by aaugustin):
Well... What's the use case?
The fact that models are registered is a private implementation detail
that isn't described anywhere in the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:3>
Comment (by aaugustin):
In fact, the real question this ticket asks is -- should the Options class
take an app_config in argument rather than an app_label?
I'm changing the title accordingly.
We aren't guaranteed to have an app_config available as long as:
- models can live outside of installed applications (#21680)
- applications / application configurations can import models (#21719)
I'm not sure we'll make drastic choices on these two tickets.
This ticket is likely to end up as wontfix, but it's probably worth
keeping until the dust of app-loading settles (after the 1.7 release).
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:4>
* keywords: app-loading => app-loading 1.9
Comment:
This ticket cannot move forward until Django 1.9.
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:5>
* cc: pirosb3 (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:6>
Comment (by aaugustin):
I took a stab at this, unfortunately, it doesn't play well with the fake
"migrations" app label declared by the Migration model.
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:7>
* keywords: app-loading 1.9 => app-loading
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:8>
* Attachment "Engineering.pdf" added.
* status: new => closed
* resolution: => wontfix
Comment:
Finally going to resolve this ticket as ''wontfix''. As pointed out by
Aymeric there are complications wrt/ to migration fake models and quite
frankly it's not clear to me what benefits it would provide over the rare
cases where `self.apps(self.app_label)` is used.
--
Ticket URL: <https://code.djangoproject.com/ticket/21682#comment:9>