嗨为什么Django调用此查询设置了两次?
class AccountListView(ListCreateAPIView):
serializer_class = AccountSerializer
def get_queryset(self):
print 'get query set'
return Accounts.objects.filter(user=self.request.user)