def METHOD_NAME(self):
    # Budget Function Queryset
    queryset = (
        self.queryset.annotate(
            id=F("treasury_account__budget_function_code"),
            type=Value("budget_function", output_field=TextField()),
            name=F("treasury_account__budget_function_title"),
            code=F("treasury_account__budget_function_code"),
        )
        .values("id", "type", "name", "code", "amount")
        .annotate(total=Sum("obligations_incurred_by_program_object_class_cpe"))
        .order_by("-total")
    )
    return queryset