def get_data(self, params, view_instance, view_method, request, args, kwargs):
        lookup_value = view_instance.kwargs[view_instance.lookup_field]
        try:
            queryset = view_instance.filter_queryset(view_instance.get_queryset()).filter(
                **{view_instance.lookup_field: lookup_value}
            )
        except __HOLE__:
            return None
        else:
            return self._get_queryset_query_string(queryset)
dataset/ETHPy150Open chibisov/drf-extensions/rest_framework_extensions/key_constructor/bits.py/RetrieveSqlQueryKeyBit.get_data