mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #21060 -- Refactored admin's autodiscover method to make it reusable.
We want to be able to use it for instance for discovering `tasks.py` modules inside the INSTALLED_APPS. This commit therefore moves the logic to `autodiscover_modules` method in django.utils.module_loading.
This commit is contained in:
parent
39b49fd339
commit
6feb75129f
6 changed files with 82 additions and 30 deletions
|
@ -0,0 +1,3 @@
|
|||
class SiteMock(object):
|
||||
_registry = {}
|
||||
site = SiteMock()
|
Loading…
Add table
Add a link
Reference in a new issue