add field of activity organization - handle quota weight

This commit is contained in:
2025-06-16 09:26:55 +03:30
parent 05b46a82b1
commit 2164c4415b
3 changed files with 9 additions and 12 deletions

View File

@@ -5,6 +5,6 @@ from rest_framework import status
class QuotaWeightException(APIException):
""" if quota distributions weight is more """
status_code = status.HTTP_401_UNAUTHORIZED
default_detail = ''
default_code = 'unauthorized'
status_code = status.HTTP_400_BAD_REQUEST
default_detail = "مقدار وارد شده باعث می‌شود مجموع سهمیه‌ها از مقدار کل سهمیه بیشتر شود." # noqa
default_code = 'error'