7.8.3 Removing Now-Redundant Code and Tests

This commit is contained in:
Jason Zhu 2020-11-11 14:33:52 +11:00
parent b5ab7f620a
commit 11be39eaf2

View File

@ -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):