Skip to content

Commit

Permalink
Merge pull request #29 from Arany/patch-1
Browse files Browse the repository at this point in the history
compability with Django 1.10
  • Loading branch information
tabo committed Aug 5, 2016
2 parents 2daf25d + 2edb72d commit e739215
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions treebeard/admin.py
Expand Up @@ -54,13 +54,13 @@ def get_urls(self):
"""
Adds a url to move nodes to this admin
"""
from django.views.i18n import javascript_catalog

urls = super(TreeAdmin, self).get_urls()
new_urls = patterns(
'',
new_urls = [
url('^move/$', self.admin_site.admin_view(self.move_node), ),
url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog',
{'packages': ('treebeard',)}),
)
url(r'^jsi18n/$', javascript_catalog, {'packages': ('treebeard',)}),
]
return new_urls + urls

def get_node(self, node_id):
Expand Down

0 comments on commit e739215

Please sign in to comment.