mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-04-29 17:34:43 +00:00
Update poutil.py
This commit is contained in:
parent
a08e017980
commit
88136e21b3
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ from django.core.cache import get_cache
|
|||
from rosetta.conf import settings as rosetta_settings
|
||||
import django
|
||||
import os
|
||||
import inspect
|
||||
|
||||
try:
|
||||
from django.utils import timezone
|
||||
|
|
@ -86,7 +87,7 @@ def find_pos(lang, project_apps=True, django_apps=False, third_party_apps=False)
|
|||
# of an app module. This code converts the AppConfig to its application
|
||||
# module.
|
||||
if django.VERSION[0:2] >= (1,7):
|
||||
if issubclass(app, AppConfig):
|
||||
if inspect.isclass(app) and issubclass(app, AppConfig):
|
||||
app = apps.get_app_config(app.name).module
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue