diff --git a/apps/submissions/tests.py b/apps/submissions/tests.py index 9fedc94..85703b3 100644 --- a/apps/submissions/tests.py +++ b/apps/submissions/tests.py @@ -128,7 +128,7 @@ def setUp(self) -> None: def test_submission_list_view(self) -> None: self.client.login(email="testuser@example", password="testpassword") - url = reverse("submission_list") + url = reverse("submissions:list") response = self.client.get(url) diff --git a/apps/submissions/urls.py b/apps/submissions/urls.py index 5070325..6ee5e84 100644 --- a/apps/submissions/urls.py +++ b/apps/submissions/urls.py @@ -2,6 +2,6 @@ from apps.submissions.views import SubmissionListView -urlpatterns = [ - path("submissions/", SubmissionListView.as_view(), name="submission_list") -] +app_name = "submissions" + +urlpatterns = [path("", SubmissionListView.as_view(), name="list")] diff --git a/templates/submissions/submission_list.html b/templates/submissions/submission_list.html index e69de29..af9d08d 100644 --- a/templates/submissions/submission_list.html +++ b/templates/submissions/submission_list.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} + +{% load crispy_forms_tags %} + +{% block title %}Submissions{% endblock title %} + +{% block content %} + +

Submissions

+ + +{% endblock content %}