django-authority/authority/__init__.py

16 lines
337 B
Python
Raw Normal View History

2009-06-08 10:00:44 +00:00
LOADING = False
2009-06-08 10:00:44 +00:00
def autodiscover():
"""
Goes and imports the permissions submodule of every app in INSTALLED_APPS
to make sure the permission set classes are registered correctly.
"""
global LOADING
if LOADING:
return
LOADING = True
from authority import utils
utils.autodiscover_modules()