1👍
✅
Use Q(...)
expression as
from appname.models import Product
from django.db.models import Q
result = Product.objects.filter(Q(current_price=0.00) | Q(current_price=None))
👤JPG
0👍
with the given data , see if this is what you are looking for ,
from appname.models import Product
result = Product.objects.filter( current_price = 0.00 or None )
- [Answered ]-Django generic List View with multiple query search
- [Answered ]-Multiple Django projects apache virtual hosts
- [Answered ]-Have only hours and minutes in durationfield Django
Source:stackexchange.com