7.8.3 Removing Now-Redundant Code and Tests
This commit is contained in:
parent
b5ab7f620a
commit
11be39eaf2
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user