Skip to content
Snippets Groups Projects
Verified Commit c75faabf authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix generation of module import path.

parent 5c4ec61c
Branches 616-docs-document-dashboard-and-dashboard-widgets
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ class AppConfig(django.apps.AppConfig):
# Run model extension code
try:
import_module('%s.model_extensions' % self.__class__.__module__.package.name)
import_module('.'.join(self.__class__.__module__.split('.')[:-1] + ['model_extensions']))
except ImportError:
# ImportErrors are non-fatal because model extensions are optional.
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment