def METHOD_NAME(self):
    important = self.request.query_params.get("important", None) == "true"
    try:
        user_id = self.request.query_params.get("user", None)
    except ValueError:
        raise BadRequest(detail="Invalid user param")
    if user_id is None or user_id == self.request.user.public_primary_key:
        queryset = self.model.objects.filter(user=self.request.user, important=important)
    else:
        try:
            target_user = User.objects.get(public_primary_key=user_id)
        except User.DoesNotExist:
            raise BadRequest(detail="User does not exist")
        queryset = self.model.objects.filter(user=target_user, important=important)
    return self.serializer_class.setup_eager_loading(queryset)