コード例 #1
0
 def get_queryset(self):
     queryset = utils.get_expend_model(filters={
         'is_for_refund': False,
         'is_for_return': True
     },
                                       only=(),
                                       request=self.request)
     return queryset
コード例 #2
0
 def get_queryset(self):
     queryset = utils.get_expend_model(filters={
         'is_for_refund':
         False,
         'is_for_return':
         True,
         'added__year':
         datetime.date.today().year
     },
                                       only=(),
                                       request=self.request)
     return queryset
コード例 #3
0
 def get_queryset(self):
     queryset = utils.get_expend_model(filters={},
                                       only=(),
                                       request=self.request)
     return queryset
コード例 #4
0
 def get_queryset(self):
     queryset = utils.get_expend_model(
         filters={'added__year': datetime.datetime.today().year},
         only=(),
         request=self.request)
     return queryset