示例#1
0
    def fetch_pending(self, deleted):

        if (not deleted):
            objs = VBBUComponent.get_tenant_objects().filter(
                Q(enacted__lt=F('updated')) | Q(enacted=None), Q(lazy_blocked=False))
        else:

            objs = VBBUComponent.get_deleted_tenant_objects()

        return objs
示例#2
0
    def fetch_pending(self, deleted):

        if (not deleted):
            objs = VBBUComponent.get_tenant_objects().filter(
                Q(enacted__lt=F('updated')) | Q(enacted=None),
                Q(lazy_blocked=False))
        else:

            objs = VBBUComponent.get_deleted_tenant_objects()

        return objs
示例#3
0
 def queryset(self, request):
     return VBBUComponent.get_tenant_objects_by_user(request.user)
示例#4
0
文件: admin.py 项目: Chunhai/xos-1
 def queryset(self, request):
     return VBBUComponent.get_tenant_objects_by_user(request.user)