diff options
author | 2023-04-16 01:00:32 +0200 | |
---|---|---|
committer | 2023-04-16 01:00:32 +0200 | |
commit | 762763cf00651526b798e70995eaf320d4275e97 (patch) | |
tree | bcfcc55264154f25de8a5c91c4cdc21ecf2c4f2d /pydis_site/apps/staff/views.py | |
parent | Add README to the resources app (#934) (diff) |
Add a README to the staff app
Plus minor refactorings
Diffstat (limited to 'pydis_site/apps/staff/views.py')
-rw-r--r-- | pydis_site/apps/staff/views.py | 11 |
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" |