summaryrefslogtreecommitdiff
path: root/postgresqleu/mailqueue/backendviews.py
AgeCommit message (Collapse)Author
2024-10-08Decorate mailqueue views with @login_requiredMagnus Hagander
We did explicitly check for superuser permissions, so there was no way to get in, but without the decorator we wouldn't get the redirect to the login page.
2023-06-01Teach mailqueue viewer to show attachments in pending emailsMagnus Hagander
2022-11-05Make mail queue detailed view fields read-onlyMagnus Hagander
Also remove the save button since there is nothing to save, but keep the delete button since we still want the ability to clear the queue.
2019-04-06Make the mail queue managable through the backend interfaceMagnus Hagander
This adds a viewer and editor for the mailqueue to the dashboard, superuser only. While at it, expose time and subject directly in the queue to make it easier to determine what is what. Most of the time this is not going to matter because emails are short-lived in the queue. But during development and definitely during debugging, it can be quite useful. Move the "parsed mail view" out of django admin and into the backend view so we don't have to maintain it twice. There is very little use for the admin view anymore, so it's OK to just show the raw data there.