Deprecated methodall_text, replaced by get_content_html. Overriding all_text still works for now but will log a warning asking you to rename the method.
Moved template files to mentions sub-directory. If you have custom overrides of these templates in your root templates/ directory please move them to templates/mentions/.
Added user agent header to all network requests.
Customisable via settings.WEBMENTIONS_USER_AGENT: str.
Admin-facing strings are now translatable.
Added urlpatterns helper functions mentions_path, mentions_re_path for (hopefully) simpler setup.
More straightforward view-to-model mapping.
Removes the need to implement resolve_from_url_kwargs on your MentionableMixin implementation.
MentionableMixin
:allow_outgoing_webmentions
default now configurable viasettings.WEBMENTIONS_ALLOW_OUTGOING_DEFAULT
.slug
field. If you use this field you can restore the previous behaviour by adding the following to your model.all_text
, replaced byget_content_html
. Overridingall_text
still works for now but will log a warning asking you to rename the method.Moved template files to
mentions
sub-directory. If you have custom overrides of these templates in your roottemplates/
directory please move them totemplates/mentions/
.Added user agent header to all network requests.
settings.WEBMENTIONS_USER_AGENT: str
.Admin-facing strings are now translatable.
Added
urlpatterns
helper functionsmentions_path
,mentions_re_path
for (hopefully) simpler setup.resolve_from_url_kwargs
on your MentionableMixin implementation.Support for Wagtail.
Page
models should implementMentionableMixin
as usual.RoutablePageMixin
should use the new@mentions_wagtail_path
,@mentions_wagtail_re_path
decorators in place of the Wagtail equivalents@path
,@re_path
.mentions_path
andmentions_re_path
.richtext
on any RichTextField values inget_content_html
:class MyModel(MentionableMixin, Page): ... def get_content_html(self) -> str: return f"{richtext(self.overview)} {richtext(self.body)}"
Wiki pages are now live! These will be kept up-to-date going forwards but may not be useful for pre-4.0 versions.
Fix: Relative URLs in
h-card
homepage or avatar are now resolved to absolute URLs.