-
Notifications
You must be signed in to change notification settings - Fork 2
Release 4.1.2
Michael Beaton edited this page Jan 30, 2025
·
1 revision
Fixed #54: Broken on wagtail>=6.2
.
- Issue: In
wagtail==6.2
, the implementation ofRoutablePageMixin.route
was changed to add theroutable_resolver_match
attribute to the given request object.get_model_for_url_by_wagtail
previously called that method withrequest=None
(because there is no relevant request object available at the time webmentions are processed), so trying to set that attribute on the request fails. - Fix:
get_model_for_url_by_wagtail
now creates and passes a dummy instance ofHttpRequest
when calling that method.