Skip to content

Commit

Permalink
Merge pull request #66 from pypetey/master
Browse files Browse the repository at this point in the history
Fix django 1.10 warning
  • Loading branch information
jedie committed Apr 28, 2016
2 parents 1b12408 + d1d4a78 commit b47c0c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reversion_compare/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ def get_urls(self):
admin_site = self.admin_site
opts = self.model._meta
info = opts.app_label, opts.model_name,
reversion_urls = patterns("",
url("^([^/]+)/history/compare/$", admin_site.admin_view(self.compare_view),
name='%s_%s_compare' % info),
)
reversion_urls = [
url("^([^/]+)/history/compare/$", admin_site.admin_view(self.compare_view), name='%s_%s_compare' % info),
]
return reversion_urls + urls

def _get_action_list(self, request, object_id, extra_context=None):
Expand Down

0 comments on commit b47c0c8

Please sign in to comment.