Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade wagtail 61 #50

Merged
merged 13 commits into from
Jul 14, 2024
Merged

Upgrade wagtail 61 #50

merged 13 commits into from
Jul 14, 2024

Conversation

nickmoreton
Copy link
Collaborator

@nickmoreton nickmoreton commented Jul 14, 2024

This will update the package for Wagtail 6.1 support

Fixes:

  • Deleting a page where the qrcode has been deleted via the Document manager no longer errors.

@@ -55,7 +55,7 @@ def send_qr_code_email(page, email=None, subject=None, body=None):

@hooks.register("after_delete_page")
def delete_document(request, page):
if is_qrcode_instance(page):
if is_qrcode_instance(page) and page.qr_code_eps:
doc = get_document_model().objects.filter(id=page.qr_code_eps.id)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the qrcode has been deleted via the document manager it will error here because the id is not available

@nickmoreton nickmoreton merged commit 2e0d943 into release Jul 14, 2024
13 checks passed
@nickmoreton nickmoreton deleted the upgrade-wagtail-61 branch July 14, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant