From b4b2b43475c74799a03d9f5b3da18a2fceea505e Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Fri, 2 Jan 2026 21:50:37 -0500 Subject: [PATCH] in apps.dashboard.tests & .urls, adding a new to-do item to the input field in either home.html or a blank-tabled list.html points to /apps/dashboard/newlist; in .views, home_page() FBV simplified to a mere html page render & new_list() FBV added that currently points to the global list --- apps/dashboard/tests.py | 30 +++++++++++++----------------- apps/dashboard/views.py | 13 ++++++------- core/urls.py | 1 + templates/apps/dashboard/home.html | 2 +- templates/apps/dashboard/list.html | 2 +- 5 files changed, 22 insertions(+), 26 deletions(-) diff --git a/apps/dashboard/tests.py b/apps/dashboard/tests.py index f309198..14e9f01 100644 --- a/apps/dashboard/tests.py +++ b/apps/dashboard/tests.py @@ -8,23 +8,9 @@ class HomePageTest(TestCase): def test_renders_input_form(self): response = self.client.get('/') - self.assertContains(response, '
') + self.assertContains(response, '') self.assertContains(response, '') + self.assertContains(response, '') self.assertContains(response, '

Dashboard | Start a new to-do list

- + {% csrf_token %}
diff --git a/templates/apps/dashboard/list.html b/templates/apps/dashboard/list.html index 7886c28..58585ad 100644 --- a/templates/apps/dashboard/list.html +++ b/templates/apps/dashboard/list.html @@ -4,7 +4,7 @@

Your To-Do List

-
+ {% csrf_token %}