Skip to content

Commit

Permalink
Filter option for country_to in PersonnelFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
szabozoltan69 committed Feb 6, 2025
1 parent 1de632b commit ea31843
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deployments/drf_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ class PersonnelDeploymentViewset(viewsets.ReadOnlyModelViewSet):

class PersonnelFilter(filters.FilterSet):
country_from = filters.NumberFilter(field_name="country_from", lookup_expr="exact")
country_to = filters.NumberFilter(field_name="country_to", lookup_expr="exact")
type = filters.CharFilter(field_name="type", lookup_expr="exact")
event_deployed_to = filters.NumberFilter(field_name="deployment__event_deployed_to", lookup_expr="exact")

Expand Down

0 comments on commit ea31843

Please sign in to comment.