This commit is contained in:
2025-12-02 17:59:53 +03:30
parent 0c18bf46d9
commit fc866c887d

View File

@@ -333,9 +333,6 @@ def organization_quota_stats(sender, instance: Quota, created: bool, **kwargs):
org_quota_stat.save(update_fields=['total_amount', 'total_distributed', 'sold_amount', 'remaining_amount'])
instance.attribute_values.all().update(org_quota_stat=org_quota_stat)
instance.broker_values.all().update(org_quota_stat=org_quota_stat)
# delete quota
if instance.trash:
org_quota_stat.soft_delete()