Update poutil.py

This commit is contained in:
artscoop 2014-06-07 03:02:54 +02:00
parent a08e017980
commit 88136e21b3

View file

@ -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: