Permalink
Browse files

Update poutil.py

  • Loading branch information...
1 parent a08e017 commit 88136e21b3ed9f8bc930592a82b2e984c38cfa0e @artscoop artscoop committed Jun 7, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 rosetta/poutil.py
View
@@ -4,6 +4,7 @@
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:

0 comments on commit 88136e2

Please sign in to comment.