#NEWLINE# def autodiscover( ) : #NEWLINE# #INDENT# '\n    Iterate over django.apps.get_app_configs() and discover\n    versatileimagefield.py modules.\n    ' #NEWLINE# from importlib import import_module #NEWLINE# from django.apps import apps #NEWLINE# from django.utils.module_loading import module_has_submodule #NEWLINE# for app_config in apps . get_app_configs ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# before_import_sizedimage_registry = copy . copy ( versatileimagefield_registry . _sizedimage_registry ) #NEWLINE# before_import_filter_registry = copy . copy ( versatileimagefield_registry . _filter_registry ) #NEWLINE# import_module ( ( '%s.versatileimagefield' % app_config . name ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# versatileimagefield_registry . _sizedimage_registry = before_import_sizedimage_registry #NEWLINE# versatileimagefield_registry . _filter_registry = before_import_filter_registry #NEWLINE# if module_has_submodule ( app_config . module , 'versatileimagefield' ) : #NEWLINE# #INDENT# raise