From 849dd5124b9aecf3b13e00fb16d8b0df382f811b Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Tue, 22 Aug 2023 16:25:26 +0100 Subject: [PATCH] Rename groups IndexView.results_template_name to results.html --- docs/releases/5.2.md | 4 ++++ .../wagtailusers/groups/{results.html => index_results.html} | 0 2 files changed, 4 insertions(+) rename wagtail/users/templates/wagtailusers/groups/{results.html => index_results.html} (100%) diff --git a/docs/releases/5.2.md b/docs/releases/5.2.md index ca896ba0f5..565b50f34c 100644 --- a/docs/releases/5.2.md +++ b/docs/releases/5.2.md @@ -53,3 +53,7 @@ depth: 1 ### `ModelViewSet` automatically registers the model to the reference index Models that are registered with a `ModelViewSet` now have reference index tracking enabled by default. This means that you no longer need to call `ReferenceIndex.register_model()` in your app's `ready()` method for such models. If this is undesired, you can disable it by setting {attr}`~wagtail.admin.viewsets.model.ModelViewSet.add_to_reference_index` to `False` on the `ModelViewSet` subclass. For more details, see [](managing_the_reference_index). + +### Groups `IndexView.results_template_name` renamed from `results.html` to `index_results.html` + +The `IndexView`'s `results_template_name` attribute in the `GroupViewSet` has been renamed from `wagtailusers/groups/results.html` to `wagtailusers/groups/index_results.html` for consistency with the other viewsets. If you have customised or extended the template, e.g. for [](customising_group_views), you will need to rename it to match the new name. diff --git a/wagtail/users/templates/wagtailusers/groups/results.html b/wagtail/users/templates/wagtailusers/groups/index_results.html similarity index 100% rename from wagtail/users/templates/wagtailusers/groups/results.html rename to wagtail/users/templates/wagtailusers/groups/index_results.html