Project

General

Profile

« Previous | Next » 

Revision 7caf5070

Added by Jérôme Schneider about 10 years ago

ressources: filter place of life by services type

Closes #4146

View differences:

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)

Also available in: Unified diff