diff --git a/actionslog/models.py b/actionslog/models.py index f3ca748..30b617f 100644 --- a/actionslog/models.py +++ b/actionslog/models.py @@ -4,7 +4,10 @@ from django.conf import settings from django.contrib.admin.utils import quote from django.contrib.contenttypes.models import ContentType -from django.core.urlresolvers import NoReverseMatch, reverse +try: + from django.urls import NoReverseMatch, reverse +except ImportError: + from django.core.urlresolvers import NoReverseMatch, reverse from django.db import models from django.db.models import QuerySet, Q from django.utils.encoding import python_2_unicode_compatible, smart_text