Opened 17 years ago
Closed 17 years ago
#8970 closed (duplicate)
Explicit argument should be added to admin 'autodiscover()'
| Reported by: | joshuajonah | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | josh@… | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Just an idea, but it would be nice to be able to give an argument to autodiscover() that would target an admin.py. Many people use a collective admin.py in their project to call their app admin.py's. This would avoid having to manually import the project admin.py in settings.
example:
admin.autodiscover(admin)
Change History (3)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Cc: | added |
|---|
comment:3 by , 17 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Also it would allow different autodiscover configurations for testing etc.