Opened 9 years ago
Closed 9 years ago
#25877 closed Cleanup/optimization (duplicate)
Consider refactoring AdminSite.check_dependencies
Reported by: | Aymeric Augustin | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
I see two problems with this method:
- It doesn't take advantage of the checks framework. Perhaps it should?
- It runs as a side effect of loading the admin URLs. If it must run when Django starts it should be called from AdminAppConfig.ready() instead.
Note:
See TracTickets
for help on using tickets.
Duplicate of #24116