We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7bb2a commit 0b12fb3Copy full SHA for 0b12fb3
django_object_actions/utils.py
@@ -2,7 +2,7 @@
2
3
from functools import wraps
4
5
-from django.conf.urls import patterns
+from django.conf.urls import patterns, url
6
from django.contrib import messages
7
from django.db.models.query import QuerySet
8
from django.http import Http404, HttpResponse, HttpResponseRedirect
@@ -22,7 +22,7 @@ def get_tool_urls(self):
22
tools[tool] = getattr(self, tool)
23
my_urls = patterns('',
24
# supports pks that are numbers or uuids
25
- (r'^(?P<pk>[0-9a-f\-]+)/tools/(?P<tool>\w+)/$',
+ url(r'^(?P<pk>[0-9a-f\-]+)/tools/(?P<tool>\w+)/$',
26
self.admin_site.admin_view(
27
ModelToolsView.as_view(model=self.model, tools=tools)))
28
)
0 commit comments