How can I check if I have an empty column in my query?
this is my code:
mastercard_percent = ClientPaymentOption.objects.filter(name='MasterCard', client=client).values_list('itemcharged',flat=True) if mastercard_percent == [None]: print 'empty' print mastercard_percent
and I got only this:
[None]
I am also trying in my code to become:
if mastercard_percent == [None]: print 'empty' print mastercard_percent
but he also prints:
[None]
thanks in advance...
source share