Project

General

Profile

« Previous | Next » 

Revision 7caf5070

Added by Jérôme Schneider over 11 years ago

ressources: filter place of life by services type

Closes #4146

View differences:

calebasse/ressources/lookups.py
self.query_words = words
lookups = [Q(display_name__icontains=word) for word in words]
return School.objects.filter(*lookups).\
filter(services__slug=service)
filter(services__slug=service).\
filter(school_type__services__slug=service)
def get_result(self, obj):
return self.format_item_display(obj)

Also available in: Unified diff