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),
...
© 2022 - 2024 — McMap. All rights reserved.