Beispiel #1
0
    def fetch_pending(self, deleted):

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

            objs = VPGWCComponent.get_deleted_tenant_objects()

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

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

            objs = VPGWCComponent.get_deleted_tenant_objects()

        return objs
Beispiel #3
0
 def queryset(self, request):
     return VPGWCComponent.get_tenant_objects_by_user(request.user)
Beispiel #4
0
 def queryset(self, request):
     return VPGWCComponent.get_tenant_objects_by_user(request.user)