Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 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()