1👍
Think of view function is just another normal function. The test is not rendered because the function is already returned. Once the function returns anything no further lines would be executed.
You can pass multiple filtered queries to template by passing all the querysets in the context.
return render(request, 'inventory/index.html', {'items': items, 'test': test})
Source:stackexchange.com