fix - distribution description required

This commit is contained in:
2025-11-02 15:35:44 +03:30
parent 693b5e1b24
commit 97570b285c
3 changed files with 8 additions and 0 deletions

View File

@@ -2,10 +2,12 @@ VISIBILITY_MAP = {
'userrelations': 'organization',
'organization': 'id',
'quota': ['registerer_organization', 'assigned_organizations'],
'quotastats': ['quota__registerer_organization', 'quota__assigned_organizations'],
'quotadistribution': ['assigner_organization', 'assigned_organization'],
'inventoryentry': 'organization',
'inventoryquotasaletransaction': 'organization',
'device': 'organization',
# 'deviceactivationcode': 'organization',
# 'deviceversion': 'organization',
# 'posclient': 'organization',

View File

@@ -19,6 +19,9 @@ class QuotaDistributionSerializer(serializers.ModelSerializer):
extra_kwargs = {
'assigner_organization': {
'required': False
},
'description': {
'required': False
}
}

View File

@@ -685,3 +685,6 @@ AssertionError: .validate() should return the validated data
[2025-11-02 14:48:23,704] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
[2025-11-02 14:49:21,133] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\services\visibility_services.py changed, reloading.
[2025-11-02 14:49:23,410] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
[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.