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
}
}