def METHOD_NAME(self):
    qs = super().METHOD_NAME()
    # codepath via the the `get_viewset_for_path` utilities in various libraries
    # does not always initialize a request, which causes self.action to not be set.
    # FIXME: extract that utility into a separate library to unify it
    action = getattr(self, "action", None)
    if action != "list":
        # ⚡️ drop the prefetches when only selecting a single record. If the data
        # is needed, the queries will be done during serialization and the amount
        # of queries will be the same.
        qs = qs.prefetch_related(None)
    return qs