'NoneType' object is not iterable when using context processors
I wrote a simple function that passes some info inside base.html like bellow:
def payment_check(request):
if request.user.is_authenticated:
context = {
'paymentCheck':PaymentInfo.objects.filter(user=request.user)
}
return context
but gives me 'NoneType' object is not iterable error.