bitsof / selecto

1 stars 0 forks source link

Fix test_example #40

Closed shane-co closed 1 year ago

shane-co commented 1 year ago

So for both main as it is now, and the tree prior to the large conflict ridden pulls request of last night (pr #33) :

If view is changed to get rid of loader.get_template function it passes. This view passes in both main and the tree prior to pr #33 ''' def index(request): return HttpResponse('example') '''

This fails:

def index(request):
    product_list = Product.objects.all()
    template = loader.get_template('products/index.html')
    context = {
        'product_list': product_list,
    }
    return render(request, 'products/index.html', context)