Releases: torchbox/wagtail-grapple
Releases · torchbox/wagtail-grapple
Newer versions, site query and more!
This release brings support for Django >= 2.2, < 3.2, provides a site query, a GraphQLTag
field type, better output for nested StructBlock
s, rendered embed markup and raw data for EmbedBlock
s, documentation updates and more
New features
- Multi-site support - add SitesQuery and resolve pages based on site (#115) Thanks @leewesleyv
- Add GraphQLTag model (#124) Thanks @ruisaraiva19
- Add embed data for StreamField Embed blocks (#122)
- Add
register_singular_query_field
decorator (#112) - Add token/slug support to register_query_field/register_paginated_query_field (#108)
Fixes
- Fix parent attribute (#127)
- Fix nested StructBlock not resolving (#118)
- Fix pageType returns null
- Fix: use url instead of urlPath in redirections (#109) Thanks @fabienheureux
Other
Django Pagination
This release adds Django-like pagination via a register_paginated_query_field
decorator.
Changelog
- Add pagination support (#101). Thanks @ruisaraiva19
- Add contributors to README.md (#102) following the all-contributors specification. Thanks @ruisaraiva19
Wagtail 2.10, Django 3.0 and more
This release adds support for Wagtail 2.10 and Django 3.0, adds a number of fixes and new features.
Upgrade considerations
- Channels-related functionality is now optional in order to unblock Django 3.0.x compatibility. If you are using Grapple with Channels, you need to change your requirements to
wagtail_grapple[channels]
. Unfortunately, Channels currently works only with Django 2.x. We welcome all help with #86 - All media (core
Image
,Document
and wagtailmediaMedia
) have aurl
attribute that returns the full URL to the file.- The
file
attribute onMediaObjectType
now returns the relative path. Useurl
for the full URL - The
src
attribute onBaseImageObjectType
is now deprecated in favour ofurl
- The
Changelog
- Add non-nullable support to
register_query_field
decorator (#62). Thanks to @ruisaraiva19 - Add
url
toDocumentObjectType
(#95). Thanks to @tbrlpld - Fix StructValue' object has no attribute 'value' (#92). Thanks to @timmysmalls and @zerolab
- Use consistent media url attributes (#97). @zerolab
- Custom
Media
classes are now supported too
Fix typos, update links, and lint files with pre-commit (#91) Thanks to @ruisaraiva19
- Custom
- Wheel packages are now created as well. @zerolab
Wagtail 2.7, proper
Fixes packaging issue that prevented installation with Wagtail 2.7
The "forgotten migrations" release
- Includes a missed migration
- Includes the base url for the embed block when needed cb17c95