Skip to content

Commit

Permalink
Merge pull request #88 from hugotacito/master
Browse files Browse the repository at this point in the history
Update admin.py

This avoids "RemovedInDjango20Warning: Importing from django.core.urlresolvers is deprecated in favor of django.urls"
  • Loading branch information
jedie authored Mar 28, 2017
2 parents 8fbb4ca + ea0f43f commit 8558340
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reversion_compare/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
from django.contrib.admin.utils import unquote, quote
except ImportError: # Django < 1.7 # pragma: no cover
from django.contrib.admin.util import unquote, quote
from django.core.urlresolvers import reverse
try:
from django.urls import reverse
except: # Django < 1.10 # pragma: no cover
from django.core.urlresolvers import reverse
from django.http import Http404
from django.shortcuts import get_object_or_404, render_to_response
from django.utils.text import capfirst
Expand Down

0 comments on commit 8558340

Please sign in to comment.