wagtail_feedback
A simple wagtail application for letting users give feedback on your wagtail pages - provides easily readable and accessible aggregates in the page admin via FeedbackPanel
Note:
- Your
page.get_contextmethod must implement *args and **kwargs.
Quick start
-
Add
wagtail_feedbackanddjango_filtersto your INSTALLED_APPS setting like this:INSTALLED_APPS = [ # ..., 'feedback', 'django_filters', ]
-
include
feedback.urlsin your URLconf.urlpatterns = [ ... include('feedback.urls') ]
-
In your template, load the feedback template tag to use the feedback form.
{% load feedback %} {# Loads the appropriate CSS styles. `{% static 'feedback/css/feedback.css'%}` #} {% feedback_css %} {# Loads HTMX, if you have HTMX loaded in your template this is not nescessary. `{% static 'feedback/js/feedback.js'%}` #} {% feedback_js %} {% feedback page=self %} -
(Optional) Include the feedback panel in your page definition:
from wagtail.models import Page from feedback.panels import FeedbackPanel class MyPage(Page): content_panels = Page.content_panels + [ FeedbackPanel() ]
Easily configurable settings:
A class for creating custom implementations of a feedback model
FEEDBACK_MODEL_NAME default: feedback.Feedback
A form class for saving custom fields on your own custom feedback model:
FEEDBACK_FORM_CLASS default: feedback.forms.FeedbackForm
Filters for the admin in-panel list-view.
FEEDBACK_FILTER_CLASS default: feedback.filters.AbstractFeedbackFilter
Backends for validating feedback before and after submit
FEEDBACK_BACKEND default:
FEEDBACK_BACKEND = getattr(settings, "FEEDBACK_BACKEND", {
"CLASS": "feedback.backends.SessionBasedFeedbackend",
"OPTIONS": {
# ... Options passed to class
}
})
Other backends include:
feedback.backends.SessionBasedFeedbackendfeedback.backends.PageBasedFeedbackendfeedback.backends.Feedbackend(base implementation)
Custom page methods for specifying messages/functionality
Specifies if the user is allowed to leave a message on positive feedback for this page.
def allow_feedback_message_on_positive(self):
Specifies the title shown above the feedback form.
def get_feedback_title(self):
How you would like to thank your user after submitting the feedback
def get_feedback_thanks(self):
A simple short description explaining why you are asking for feedback
def get_feedback_explainer(self):
Text shown when the user hovers over the positive icon.
def get_feedback_positive_text(self):
Text shown when the user hovers over the negative icon.
def get_feedback_negative_text(self):
Django proxy settings to get IP-adress
USE_X_FORWARDED_HOST default: False
Used for setting the appropriate IP-adress on the
feedback model / when using the backend.
Metadata
Release files for wagtail-feedback 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail_feedback-1.3.2.tar.gz | 60.1 kB | Without provenance | Details for wagtail_feedback-1.3.2.tar.gz |
Release files / wagtail_feedback-1.3.2.tar.gz
| Download URL | wagtail_feedback-1.3.2.tar.gz |
|---|---|
| Size | 60.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b040de020f32dbee548a8abb289eeecc217a93f8ed3d567d6584e5b2fa8d6961
|
|
BLAKE2b-256 checksum How to use checksums |
516f26ed9b19aac27d1255ebfe263df864d36d9be6836d101521579ec9feced3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Security for wagtail-feedback 1.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.