Skip to content

Commit

Permalink
Merge pull request #413 from blag/master
Browse files Browse the repository at this point in the history
Compatibility with Django 1.8+ (silence RemovedInDjango19Warning)
  • Loading branch information
etianen committed Jun 4, 2015
2 parents 3801815 + 117ecaa commit 9f673e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/reversion/management/commands/createinitialrevisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@
except ImportError: # For Django < 1.7
from django.db.models import get_app, get_apps, get_model, get_models

try:
from importlib import import_module
except ImportError: # For Django < 1.8
from django.utils.importlib import import_module

from django.core.exceptions import ImproperlyConfigured
from django.core.management.base import BaseCommand
from django.core.management.base import CommandError
from django.contrib.contenttypes.models import ContentType
from django.db import reset_queries
from django.utils.importlib import import_module
from django.utils.encoding import force_text

from reversion import default_revision_manager
Expand Down

0 comments on commit 9f673e3

Please sign in to comment.