Corrected a typo in {% page_header_buttons %}

Fixes #10730
pull/10732/head
Robert Rollins 2023-07-31 12:26:02 -07:00 zatwierdzone przez LB (Ben Johnston)
rodzic d6ab9db01f
commit 9d6715e3dd
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -76,6 +76,7 @@ Changelog
* Fix: Fix `search_promotions` `0004_copy_queries` migration for long-lived Wagtail instances (Sage Abdullah)
* Fix: Guard against `TypeError` in `0088_fix_log_entry_json_timestamps` migration (Sage Abdullah)
* Fix: Add migration to replace JSON null values with empty objects in log entries' data (Sage Abdullah)
* Fix: Typo in the `page_header_buttons` template tag when accessing the context's request object (Robert Rollins)
* Docs: Document how to add non-ModelAdmin views to a `ModelAdminGroup` (Onno Timmerman)
* Docs: Document how to add StructBlock data to a StreamField (Ramon Wenger)
* Docs: Update ReadTheDocs settings to v2 to resolve urllib3 issue in linkcheck extension (Thibaud Colas)

Wyświetl plik

@ -125,6 +125,7 @@ This feature was developed by Aman Pandey as part of the Google Summer of Code p
* Fix `search_promotions` `0004_copy_queries` migration for long-lived Wagtail instances (Sage Abdullah)
* Guard against `TypeError` in `0088_fix_log_entry_json_timestamps` migration (Sage Abdullah)
* Add migration to replace JSON null values with empty objects in log entries' data (Sage Abdullah)
* Fix typo in the `page_header_buttons` template tag when accessing the context's request object (Robert Rollins)
### Documentation

Wyświetl plik

@ -473,7 +473,7 @@ def page_listing_buttons(context, page, page_perms):
"wagtailadmin/pages/listing/_page_header_buttons.html", takes_context=True
)
def page_header_buttons(context, page, page_perms):
next_url = context.request.path
next_url = context["request"].path
button_hooks = hooks.get_hooks("register_page_header_buttons")
buttons = []