queryset = self.filter_queryset(queryset)
filter = {}
for field in self.lookup_fields:
    filter[field] = self.kwargs[field]
return get_object_or_404(queryset, **filter)
Rest calls with multiple lookup fields for reverse lookup