def get_queryset_configurations(self, **kwargs):
        queryset_list = []
        current_configs = []

        # Create stage specific configurations dictionary
        for stage in self.stage_configurations().filter(**kwargs):
            queryset_list.append(stage)
            current_configs.append(stage.key)

        for project in self.project.project_configurations().filter(**kwargs):
            if not project.key in current_configs:
                queryset_list.append(project)
                current_configs.append(project.key)

        return queryset_list
Really we just want to do a simple SQL statement like this (but oh the ORM):
dataset/ETHPy150Open fabric-bolt/fabric-bolt/fabric_bolt/projects/models.py/Stage.get_queryset_configurations