django-q Questions

1

Solved

I'm implementing a simple LIKE search on my Django website and what I currently use is the following code: from django.db.models import Q posts = Post.objects.filter(Q(title__icontains=query)|Q(co...
Abney asked 10/11, 2010 at 17:46

1

Solved

In my views.py I have a method: #...... def get_filter_result(self, customer_type, tag_selected): list_customer_filter=[] customers_filter = Customer.objects.filter(Q(type__name=customer_type), ...
Gourami asked 24/12, 2009 at 7:37

© 2022 - 2024 — McMap. All rights reserved.