list of active quotas
This commit is contained in:
@@ -359,11 +359,13 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, viewsets.ModelViewSet, DynamicS
|
|||||||
self.get_queryset(visibility_by_org_scope=True).filter(
|
self.get_queryset(visibility_by_org_scope=True).filter(
|
||||||
is_closed=False)) # return by search param or all objects
|
is_closed=False)) # return by search param or all objects
|
||||||
|
|
||||||
|
print(queryset)
|
||||||
|
|
||||||
# paginate queryset
|
# paginate queryset
|
||||||
page = self.paginate_queryset(
|
page = self.paginate_queryset(
|
||||||
queryset.filter(
|
queryset.filter(
|
||||||
Q(assigned_organizations=org) |
|
# Q(assigned_organizations=org) |
|
||||||
Q(registerer_organization=org)
|
# Q(registerer_organization=org)
|
||||||
).order_by('-modify_date').distinct()
|
).order_by('-modify_date').distinct()
|
||||||
)
|
)
|
||||||
if page is not None: # noqa
|
if page is not None: # noqa
|
||||||
|
|||||||
Reference in New Issue
Block a user