mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Replaced hardcoded URLs in admin_* tests
Refs #15779. This will allow easier admin URL changes, when needed. Thanks Simon Charette for the review.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user