Skip to content

Commit

Permalink
fix(API): add extra Location filter on osm_address_city. ref #368
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Aug 22, 2024
1 parent d066261 commit 918bd7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions open_prices/api/locations/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class LocationFilter(django_filters.FilterSet):
osm_name__like = django_filters.CharFilter(
field_name="osm_name", lookup_expr="icontains"
)
osm_address_city__like = django_filters.CharFilter(
field_name="osm_address_city", lookup_expr="icontains"
)
osm_address_country__like = django_filters.CharFilter(
field_name="osm_address_country", lookup_expr="icontains"
)
Expand Down

0 comments on commit 918bd7e

Please sign in to comment.