Relative Content

Tag Archive for wagtail

Landing Page not rendering: Wagtail Forms

I have a Wagtail Forms implementation that uses AbstractEmailForm. I have the two required templates (for the form, and for landing), and they render fine in the preview mode and in the admin preview panel, but when I actually try to submit on the form, it accepts the submission, and then fails to do anything else. The landing page is not shown, but I can see it returned as an HTML response to the form’s POST request.

In Wagtail, how can you safely delete `PageLogEntry` instances?

I have a Django/Wagtail project that continuously updates Page instances with data retrieved via an external API. I somehow failed to implement a check to update and publish the internal instance only if the external data has changed. Therefore, Wagtail has created a lot of Revision instances. I fixed this erroneous behavior and purged old revisions using the Wagtail purge_revisions management command. That worked. But I still have a lot of PageLogEntry instances in my database.

Dynamically change the label of an InlinePanel

I have a model with an InlinePanel. Can I change the label that is shown to be a field of the model underneath it, in this case the title of the Artist field, instead of just “Artist 1”?

Missing href attribute in links to documents in Wagtail

My Wagtail app is configured to managing documents, and I want to include document links via a RichTextField of my page model. The output of the {{ page.body|richtext }} tag is missing a href attribute for document links:

How to replace with in Wagtail?

Wagtail rewrite handlers allows to expand internal links adding custom HTML attributes, but will not allow to change the closing </a> tag.

Adding a colorpicker feature to the wagtail editor

I am wondering if it is possible to add a colorpicker feature to the Wagtail editor. I would like to select a portion of the text and change its color.
I’ve researched and found that there is a feature in the draftail documentation but it is still unclear for me how can I add it to the wagtail.