fix - active quotas registere change from true to org filter"
This commit is contained in:
@@ -815,6 +815,7 @@ class OrganizationQuotaStats(BaseModel):
|
||||
distributions = models.ManyToManyField(QuotaDistribution)
|
||||
total_amount = models.PositiveBigIntegerField(default=0)
|
||||
total_distributed = models.PositiveBigIntegerField(default=0)
|
||||
inventory_received = models.PositiveBigIntegerField(default=0)
|
||||
sold_amount = models.PositiveBigIntegerField(default=0)
|
||||
remaining_amount = models.PositiveBigIntegerField(default=0) # total - sold
|
||||
stat_type = models.CharField(max_length=150, choices=(
|
||||
|
||||
@@ -363,7 +363,7 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, viewsets.ModelViewSet, DynamicS
|
||||
page = self.paginate_queryset(
|
||||
queryset.filter(
|
||||
Q(assigned_organizations=org) |
|
||||
Q(registerer_organization=True)
|
||||
Q(registerer_organization=org)
|
||||
).order_by('-modify_date').distinct()
|
||||
)
|
||||
if page is not None: # noqa
|
||||
|
||||
Reference in New Issue
Block a user