From 10b8dab54e9ab7ad3340b1a6ec0482f799c3dfa7 Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Tue, 1 Aug 2023 10:01:11 +0100 Subject: [PATCH] Fix missing space typo in GroupPagePermission warning --- wagtail/models/__init__.py | 2 +- wagtail/tests/test_page_permissions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtail/models/__init__.py b/wagtail/models/__init__.py index 04018ce4c4..4143df2f50 100644 --- a/wagtail/models/__init__.py +++ b/wagtail/models/__init__.py @@ -3012,7 +3012,7 @@ class GroupPagePermission(models.Model): hint=( "Replace the `permission_type` field in your GroupPagePermission fixtures with a natural key for the `permission` field. " "If you create GroupPagePermission objects through other means, make sure to set the `permission` field instead of the `permission_type` field. " - "Any 'edit' value for the `permission_type` field must be replaced with a ForeignKey to the `wagtailcore.change_page` permission." + "Any 'edit' value for the `permission_type` field must be replaced with a ForeignKey to the `wagtailcore.change_page` permission. " "The `permission_type` field will be removed in Wagtail 6.0." ), obj=cls, diff --git a/wagtail/tests/test_page_permissions.py b/wagtail/tests/test_page_permissions.py index c492133c7e..e84e0d43d7 100644 --- a/wagtail/tests/test_page_permissions.py +++ b/wagtail/tests/test_page_permissions.py @@ -1203,7 +1203,7 @@ class TestPagePermissionModel(TestCase): hint=( "Replace the `permission_type` field in your GroupPagePermission fixtures with a natural key for the `permission` field. " "If you create GroupPagePermission objects through other means, make sure to set the `permission` field instead of the `permission_type` field. " - "Any 'edit' value for the `permission_type` field must be replaced with a ForeignKey to the `wagtailcore.change_page` permission." + "Any 'edit' value for the `permission_type` field must be replaced with a ForeignKey to the `wagtailcore.change_page` permission. " "The `permission_type` field will be removed in Wagtail 6.0." ), obj=GroupPagePermission,