hello all, i am trying to have an advanced search.. i have college list where there are many tables in college like college.name, collge.city college.state etc.
so i have taken two strings from the user like Q1 and Q2. now i want to show all the colleges which have Q1 string in name and Q2 string in city.. basically i want to add "and" & "or" statement in this statement : college_list = College.objects.filter(name__icontains=Q1) so i want to add one another filter like (city__icontains=Q2) anyone please tell me.. thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.