I'm trying some "simple" stuff and just can't find out the solution:
t=request.GET['city'] c=request.GET['category'] s=request.GET['status'] properties = Property.objects.filter( Q(city=t) | Q(category=c ) | Q (status=s) ) Goal: Find all the properties in 'city' no matter of category or status >From the other side: find all the properties that belongs to 'category' no matter of 'status' or 'city' and so on OR doesn't work properly as well as AND -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.