Opened 16 years ago

Closed 16 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)

in reply to:  description comment:1 by joshuajonah, 16 years ago

Also it would allow different autodiscover configurations for testing etc.

comment:2 by joshuajonah, 16 years ago

Cc: josh@… added

comment:3 by Julien Phalip, 16 years ago

Resolution: duplicate
Status: newclosed

This is a dupe of #8500 and #8572. The patch proposed in the latter should help you in this case.

Note: See TracTickets for help on using tickets.
Back to Top