diff --git a/wagtail/images/admin_urls.py b/wagtail/images/admin_urls.py index c3ebf9fc25..6a11fa5b2e 100644 --- a/wagtail/images/admin_urls.py +++ b/wagtail/images/admin_urls.py @@ -5,7 +5,8 @@ from wagtail.images.views import chooser, images, multiple app_name = 'wagtailimages' urlpatterns = [ - path('', images.index, name='index'), + path('', images.IndexView.as_view(), name='index'), + path('results/', images.ListingResultsView.as_view(), name='listing_results'), path('/', images.edit, name='edit'), path('/delete/', images.delete, name='delete'), path('/generate_url/', images.url_generator, name='url_generator'), diff --git a/wagtail/images/templates/wagtailimages/images/index.html b/wagtail/images/templates/wagtailimages/images/index.html index 8b3b04d9dc..8258963c0b 100644 --- a/wagtail/images/templates/wagtailimages/images/index.html +++ b/wagtail/images/templates/wagtailimages/images/index.html @@ -8,7 +8,7 @@ {{ block.super }}