def get_last_day(cls): return cls.objects.filter(company__in=Company.get_last_day())
def resolve_collaborators(self, info): if self.view_sp: return ItdageneCompany.get_collaborators()
def resolve_main_collaborator(self, info): if self.view_hsp: return ItdageneCompany.get_main_collaborator()
def resolve_companies_last_day(self, info): if self.view_companies: return ItdageneCompany.get_last_day()
def get_queryset(cls): return ItdageneCompany.get_last_day() | ItdageneCompany.get_first_day()