How can I filter whether a list contains the param? 

In my Django-Rest-Framework project, I list the physical\_server:

```
  [
    {
        "id": 23,
        "name": 'A1'
        "ipv4s": [
            {
                "id": 313,
                "ip": "43.243.33.33",
                "netmask": "255.255.255.248",
                "prefix": 29,
                "is_gateway": false,
                "is_network_ip": false,
                "is_broadcast_ip": false,
                "desc": null,
                "ctime": "2018-04-26T21:17:34.868492+08:00",
                "uptime": "2018-05-21T12:09:25.674283+08:00",
       ....

```

this is my list API view :

```
class PhysicalServerListAPIView(ListAPIView):
    serializer_class = PhysicalServerListSerializer
    permission_classes = [AllowAny]
    pagination_class = CommonPagination

    def get_queryset(self):
        query_params = self.request.query_params

        ip_address = ''
        try:
            ip_address = query_params.pop('ip_address')  # this maybe `43.243.33.33`
        except Exception as e:
            pass

        qs = PhysicalServer.objects.filter(xxxx)  # there I want the ip_address filtered if it in the `ipv4s`.

        return qs

```

How can I realize this filter? because it is not the physicalserver's property. I can not use `filter(name='xxx')` to do that.

---

**EDIT-1**

I know I can use the for-loop to iterate the queryset's ipv4s, but I am not sure whether this is convenient or efficiently.