Skip to content

Commit

Permalink
Enable filtering facility service rating by county consituency and ward
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarika committed Feb 24, 2016
1 parent 477ffec commit 49b4131
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions facilities/filters/facility_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ class FacilityServiceRatingFilter(CommonFieldsFilterset):
lookup_type='exact')
service = django_filters.AllValuesFilter(
name="facility_service__service", lookup_type='exact')
county = django_filters.AllValuesFilter(
name="facility_service__ward__constituency__county", lookup_type='exact')
constituency = django_filters.AllValuesFilter(
name="facility_service__ward__constituency", lookup_type='exact')
ward = django_filters.AllValuesFilter(
name="facility_service__ward", lookup_type='exact')

class Meta(object):
model = FacilityServiceRating
Expand Down

0 comments on commit 49b4131

Please sign in to comment.