Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#33167 closed New feature (wontfix)

Ability to access model right after it's imported

Reported by: William Owned by: William
Component: Core (Other) Version: dev
Severity: Normal Keywords: model, load, INSTALLED_APPS
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Added so models can be accessed right after it's imported. This will allow apps to access models from apps that have a lower index number in settings.INSTALLED_APPS. This can be used to store settings in the database and make them easy to change from the admin for example.

Change History (1)

comment:1 by Carlton Gibson, 3 years ago

Resolution: wontfix
Status: assignedclosed

Hi William.

Thanks for the input. This would be a significant change in Django's behaviour. As such it would need discussion and agreement reached prior to proceeding. The appropriate place for that discussion would be the DevelopersMailingList.

However, there's recent discussion on further delaying the point at which queries are allowed that looks to hve broad backing.
https://groups.google.com/g/django-developers/c/7JwWatLfP44

As such it's unlikely that there'd be agreement to move the other way.

I hope that makes sense.

Version 0, edited 3 years ago by Carlton Gibson (next)
Note: See TracTickets for help on using tickets.
Back to Top