Skip to content

Commit 62f5987

Browse files
felixxmclaudep
authored andcommitted
Fixed importing application registry.
1 parent 01f6a5a commit 62f5987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_comments/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from importlib import import_module
22

3-
from django.apps import apps
3+
from django.apps import apps as global_apps
44
from django.conf import settings
55
from django.core.exceptions import ImproperlyConfigured
66
from django.urls import reverse
@@ -15,7 +15,7 @@ def get_comment_app():
1515
"""
1616
# Make sure the app's in INSTALLED_APPS
1717
comments_app = get_comment_app_name()
18-
if not apps.is_installed(comments_app):
18+
if not global_apps.is_installed(comments_app):
1919
raise ImproperlyConfigured(
2020
"The COMMENTS_APP (%r) must be in INSTALLED_APPS" % comments_app
2121
)

0 commit comments

Comments
 (0)