aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/staff/views.py
diff options
context:
space:
mode:
authorGravatar hedy <[email protected]>2023-12-14 20:28:17 +0800
committerGravatar hedy <[email protected]>2023-12-14 20:28:17 +0800
commit449c08fd5459b2f804dbf825086ec1dd0f244d8a (patch)
treee4589cb227cdb2e611bcbf9b02ea481fe24cdb34 /pydis_site/apps/staff/views.py
parentResize theme switch (diff)
parentMerge pull request #1173 from python-discord/dependabot/pip/sentry-sdk-1.39.0 (diff)
Fix all conflicts
hopefully I dont have to do this again
Diffstat (limited to 'pydis_site/apps/staff/views.py')
-rw-r--r--pydis_site/apps/staff/views.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pydis_site/apps/staff/views.py b/pydis_site/apps/staff/views.py
new file mode 100644
index 00000000..22dede95
--- /dev/null
+++ b/pydis_site/apps/staff/views.py
@@ -0,0 +1,11 @@
+from django.views.generic.detail import DetailView
+
+from pydis_site.apps.api.models.bot.message_deletion_context import MessageDeletionContext
+
+
+class LogView(DetailView):
+ """The default view for the Deleted Messages logs."""
+
+ model = MessageDeletionContext
+ context_object_name = "deletion_context"
+ template_name = "staff/logs.html"