mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2026-01-02 01:27:03 -05:00
feat: Implement initial schema and add various API, service, and management command enhancements across the application.
This commit is contained in:
@@ -26,6 +26,7 @@ from .views import (
|
||||
|
||||
class ModerationDashboardView(TemplateView):
|
||||
"""Moderation dashboard view with HTMX integration."""
|
||||
|
||||
template_name = "moderation/dashboard.html"
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
@@ -38,6 +39,7 @@ class ModerationDashboardView(TemplateView):
|
||||
|
||||
class SubmissionListView(TemplateView):
|
||||
"""Submission list view with filtering."""
|
||||
|
||||
template_name = "moderation/partials/dashboard_content.html"
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
@@ -63,8 +65,10 @@ class SubmissionListView(TemplateView):
|
||||
|
||||
class HistoryPageView(TemplateView):
|
||||
"""Main history page view."""
|
||||
|
||||
template_name = "moderation/history.html"
|
||||
|
||||
|
||||
# Create router and register viewsets
|
||||
router = DefaultRouter()
|
||||
router.register(r"reports", ModerationReportViewSet, basename="moderation-reports")
|
||||
|
||||
Reference in New Issue
Block a user