From a45cdc2678de8dd6767a465bbc78c6aaeb02ba4c Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Sun, 2 Nov 2025 15:42:49 +0330 Subject: [PATCH] fix - distribution description blank=True --- apps/product/models.py | 2 +- logs/django_requests.log | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/product/models.py b/apps/product/models.py index 6cf90ac..3e9dd25 100644 --- a/apps/product/models.py +++ b/apps/product/models.py @@ -714,7 +714,7 @@ class QuotaDistribution(BaseModel): related_name='distributions', null=True ) - description = models.TextField(max_length=1000, null=True) + description = models.TextField(max_length=1000, null=True, blank=True) distribution_id = models.CharField(max_length=20, null=True) quota = models.ForeignKey( Quota, diff --git a/logs/django_requests.log b/logs/django_requests.log index 1eadbc8..669f2c4 100644 --- a/logs/django_requests.log +++ b/logs/django_requests.log @@ -688,3 +688,5 @@ AssertionError: .validate() should return the validated data [2025-11-02 15:01:55,002] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\core\visibility_registry.py changed, reloading. [2025-11-02 15:01:59,909] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader [2025-11-02 15:33:11,579] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\web\api\v1\serializers\quota_distribution_serializers.py changed, reloading. +[2025-11-02 15:33:14,976] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-02 15:42:30,151] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\models.py changed, reloading.