mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +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:
parent
9033003d97
commit
32e6a7d3a5
8 changed files with 693 additions and 647 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue