def get_dated_queryset(self, **lookup): if not Partner.exist(self.request.user): raise Http404 return super( PartnerIncomeView, self).get_dated_queryset(**lookup).filter( account__partner__user=self.request.user).select_related()
def get_dated_queryset(self, **lookup): if not Partner.exist(self.request.user): raise Http404 return super(PartnerIncomeView, self).get_dated_queryset(**lookup).filter( account__partner__user=self.request.user).select_related()
def get_queryset(self): if not Partner.exist(self.request.user): raise Http404 return super(PartnerAccountsView, self).get_queryset().filter( partner__user=self.request.user).select_related()
def get_queryset(self): if not Partner.exist(self.request.user): raise Http404 return super(PartnerAccountsView, self).get_queryset().filter(partner__user = self.request.user).select_related()