Skip to content

Commit

Permalink
fix import for django 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shtalinberg committed Dec 12, 2018
1 parent 23da5cc commit 8e05d15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actionslog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e05d15

Please sign in to comment.