**shipment_booking is my table name.
***i want to check my table filed "ord" value is "yes" or not
****if my "ord"field value "yes" then return "pre-budget" page.
def bkp1(request):
orderv="yes"
allorder=shipment_booking.objects.all()
return render(request, 'bkp1.html')
if request.method=='POST'and 'pbd' in request.POST:
for shipment_booking in allorder:
o=shipment_booking.ords
if orderv==o:
return render(request, 'Pre-Budget.html')
else:
return render(request, 'bkp1.html',{'msg':'Please Add Order Details'})
else:
return render(request, 'bkp1.html')
return render(request, 'bkp1.html')in between afterallorder? - Bhagyesh Dudhediyashipment_booking- Faisal Nazik