Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #73 from carltongibson/18-warning
Browse files Browse the repository at this point in the history
Work around 1.8 warnings
  • Loading branch information
kmmbvnr committed Mar 5, 2015
2 parents 61a661f + 824e20c commit e163485
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion django_fsm/__init__.py
Expand Up @@ -7,7 +7,13 @@
import sys

from django.db import models
from django.db.models.loading import get_model
try:
from django.apps import apps as django_apps
def get_model(app_label, model_name):
app = django_apps.get_app_config(app_label)
return app.get_model(model_name)
except ImportError:
from django.db.models.loading import get_model
from django.db.models.signals import class_prepared
from django.utils.functional import curry
from django_fsm.signals import pre_transition, post_transition
Expand Down

0 comments on commit e163485

Please sign in to comment.