#24322: Increase consistency in the app registry
-------------------------------------+-------------------------------------
Reporter: aaugustin | Owner: aaugustin
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: app-loading | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by aaugustin):
It's tempting to replace `Apps.all_models` by the combination of
`Apps.app_configs` and `AppConfig.models` but this isn't possible because
of `set_available_apps`.
Indeed, if it's used to add an application temporarily, the `AppConfig`
for this application will be thrown away in `unset_installed_apps`. If
it's used again to add the same application, there's no way to know which
models belong to this app, unless the list has been store somewhere like
`Apps.all_models`.
--
Ticket URL: <https://code.djangoproject.com/ticket/24322#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.a5b0a893a122464855c52b0618d429d4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.