From 11be39eaf2b01ef3c413668d0ee049915ee0d9d9 Mon Sep 17 00:00:00 2001 From: JasonHomeWorkstationUbuntu Date: Wed, 11 Nov 2020 14:33:52 +1100 Subject: [PATCH] 7.8.3 Removing Now-Redundant Code and Tests --- src/lists/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lists/views.py b/src/lists/views.py index 9571f3e..7aa1cc9 100644 --- a/src/lists/views.py +++ b/src/lists/views.py @@ -6,10 +6,6 @@ from lists.models import Item # Create your views here def home_page(request): - if request.method == 'POST': - Item.objects.create(text=request.POST['item_text']) - return redirect('/lists/the-only-list-in-the-world') - return render(request=request, template_name='home.html') def view_list(request):