summaryrefslogtreecommitdiff
path: root/tests/admin_views/customadmin.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-02-06 23:25:15 +0100
committerTim Graham <timograham@gmail.com>2015-02-08 15:12:07 -0500
commitcd260d03bd7c43b78ad3a394e1b62f526f40f4ce (patch)
treeb4765c2d376ee9844faa985ce585d2f05d0c6e0b /tests/admin_views/customadmin.py
parentd54638727ae23e8dc1e1ed0823efbd15806d9778 (diff)
[1.8.x] Replaced hardcoded URLs in admin_* tests
Refs #15779. This will allow easier admin URL changes, when needed. Thanks Simon Charette for the review. Backport of 32e6a7d3a57b2287d55e8b8efa4e8cb7643b1720 from master
Diffstat (limited to 'tests/admin_views/customadmin.py')
-rw-r--r--tests/admin_views/customadmin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_views/customadmin.py b/tests/admin_views/customadmin.py
index 3276a3091d..dde24b612f 100644
--- a/tests/admin_views/customadmin.py
+++ b/tests/admin_views/customadmin.py
@@ -27,7 +27,7 @@ class Admin2(admin.AdminSite):
def get_urls(self):
return [
- url(r'^my_view/$', self.admin_view(self.my_view)),
+ url(r'^my_view/$', self.admin_view(self.my_view), name='my_view'),
] + super(Admin2, self).get_urls()
def my_view(self, request):