0001-ressources-filter-place-of-life-by-services-type.patch
calebasse/ressources/lookups.py | ||
---|---|---|
75 | 75 |
self.query_words = words |
76 | 76 |
lookups = [Q(display_name__icontains=word) for word in words] |
77 | 77 |
return School.objects.filter(*lookups).\ |
78 |
filter(services__slug=service) |
|
78 |
filter(services__slug=service).\ |
|
79 |
filter(school_type__services__slug=service) |
|
79 | 80 | |
80 | 81 |
def get_result(self, obj): |
81 | 82 |
return self.format_item_display(obj) |
82 |
- |