aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/staff
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/staff')
-rw-r--r--pydis_site/apps/staff/tests/test_logs_view.py2
-rw-r--r--pydis_site/apps/staff/urls.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/pydis_site/apps/staff/tests/test_logs_view.py b/pydis_site/apps/staff/tests/test_logs_view.py
index 17910bb6..00e0ab2f 100644
--- a/pydis_site/apps/staff/tests/test_logs_view.py
+++ b/pydis_site/apps/staff/tests/test_logs_view.py
@@ -133,7 +133,7 @@ class TestLogsView(TestCase):
response = self.client.get(url)
self.assertIn("messages", response.context)
self.assertListEqual(
- [self.deleted_message_one, self.deleted_message_two],
+ [self.deleted_message_two, self.deleted_message_one],
list(response.context["deletion_context"].deletedmessage_set.all())
)
diff --git a/pydis_site/apps/staff/urls.py b/pydis_site/apps/staff/urls.py
index a564d516..ca8d1a0f 100644
--- a/pydis_site/apps/staff/urls.py
+++ b/pydis_site/apps/staff/urls.py
@@ -1,5 +1,3 @@
-from django.conf import settings
-from django.conf.urls.static import static
from django.urls import path
from .viewsets import LogView
@@ -7,4 +5,4 @@ from .viewsets import LogView
app_name = 'staff'
urlpatterns = [
path('bot/logs/<int:pk>/', LogView.as_view(), name="logs"),
-] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+]