diff --git a/apps/establishment/views/back.py b/apps/establishment/views/back.py index 921470ad..b81db02e 100644 --- a/apps/establishment/views/back.py +++ b/apps/establishment/views/back.py @@ -608,6 +608,12 @@ class EmployeeListCreateView(generics.ListCreateAPIView): IsEstablishmentAdministrator, ) + def get_queryset(self): + qs = super().get_queryset() + if self.request.country_code: + qs = qs.filter(establishments__address__city__country__code=self.request.country_code) + return qs + class EmployeesListSearchViews(generics.ListAPIView): """