Project

General

Profile

0001-ressources-filter-place-of-life-by-services-type.patch

Jérôme Schneider, 17 July 2014 06:04 PM

Download (1004 Bytes)

View differences:

Subject: [PATCH] ressources: filter place of life by services type

Closes #4146
 calebasse/ressources/lookups.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
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
-