mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3] Fixed admin_custom_urls tests.
This commit is contained in:
@@ -28,7 +28,7 @@ class ActionAdmin(admin.ModelAdmin):
|
||||
Remove all entries named 'name' from the ModelAdmin instance URL
|
||||
patterns list
|
||||
"""
|
||||
return filter(lambda e: e.name != name, super(ActionAdmin, self).get_urls())
|
||||
return [url for url in super(ActionAdmin, self).get_urls() if url.name != name]
|
||||
|
||||
def get_urls(self):
|
||||
# Add the URL of our custom 'add_view' view to the front of the URLs
|
||||
|
||||
Reference in New Issue
Block a user