plugged up some testing holes with explicit placeholder urls in views and unit tests; most tests now pass
This commit is contained in:
@@ -4,7 +4,11 @@ from .models import Item
|
||||
def home_page(request):
|
||||
if request.method == 'POST':
|
||||
Item.objects.create(text=request.POST['item_text'])
|
||||
return redirect('/')
|
||||
return redirect('/apps/dashboard/the-only-list-in-the-world/')
|
||||
|
||||
items = Item.objects.all()
|
||||
return render(request, 'apps/dashboard/home.html', {'items': items})
|
||||
|
||||
def view_list(request):
|
||||
items = Item.objects.all()
|
||||
return render(request, 'apps/dashboard/home.html', {'items': items})
|
||||
Reference in New Issue
Block a user