fix - update org visibility & bank fields blank=true
This commit is contained in:
@@ -358,6 +358,10 @@ class OrganizationSerializer(serializers.ModelSerializer):
|
|||||||
instance.address = validated_data.get('address', instance.address)
|
instance.address = validated_data.get('address', instance.address)
|
||||||
instance.parent_organization = validated_data.get('parent_organization', instance.parent_organization)
|
instance.parent_organization = validated_data.get('parent_organization', instance.parent_organization)
|
||||||
instance.national_unique_id = validated_data.get('national_unique_id', instance.national_unique_id)
|
instance.national_unique_id = validated_data.get('national_unique_id', instance.national_unique_id)
|
||||||
|
instance.free_visibility_by_scope = validated_data.get(
|
||||||
|
'free_visibility_by_scope',
|
||||||
|
instance.free_visibility_by_scope
|
||||||
|
)
|
||||||
instance.save()
|
instance.save()
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
|
|||||||
@@ -194,10 +194,10 @@ class BankAccountInformation(BaseModel):
|
|||||||
('USR', 'user'),
|
('USR', 'user'),
|
||||||
)
|
)
|
||||||
account_type = models.CharField(max_length=10, default='USR')
|
account_type = models.CharField(max_length=10, default='USR')
|
||||||
name = models.CharField(max_length=150, null=True)
|
name = models.CharField(max_length=150, null=True, blank=True)
|
||||||
card = models.CharField(max_length=25, null=True)
|
card = models.CharField(max_length=25, null=True, blank=True)
|
||||||
account = models.CharField(max_length=25, null=True)
|
account = models.CharField(max_length=25, null=True, blank=True)
|
||||||
sheba = models.CharField(max_length=30, null=True)
|
sheba = models.CharField(max_length=30, null=True, blank=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f'{self.name}-{self.card}'
|
return f'{self.name}-{self.card}'
|
||||||
|
|||||||
Reference in New Issue
Block a user