1👍
✅
render
is a shortcut; it doesn’t take a Context object, it takes a plain dict.
context = {
'product': Product.objects.get(pk=product_id).name,
'ship_units': ShipUnit.objects.filter(product = product_id),
'shop_units': ShopUnit.objects.filter(product = product_id),
}
Source:stackexchange.com