celery & attributes list by product

This commit is contained in:
2025-07-19 10:41:03 +03:30
parent a6b29ad28d
commit dc1e79c684
7 changed files with 97 additions and 8 deletions

View File

@@ -42,6 +42,7 @@ class QuotaDistributionSerializer(serializers.ModelSerializer):
if quota.is_closed:
raise QuotaClosedException()
# check if assigned organization is in quota limitation
if assigned_organization not in quota.limit_by_organizations.all():
raise QuotaLimitByOrganizationException()