diff --git a/api/dashboard/organisation/serializers.py b/api/dashboard/organisation/serializers.py index 528b2feb..60784727 100644 --- a/api/dashboard/organisation/serializers.py +++ b/api/dashboard/organisation/serializers.py @@ -126,6 +126,7 @@ def update(self, instance, validated_data): user_id = self.context.get('user_id') instance.title = validated_data.get('title', instance.title) instance.code = validated_data.get('code', instance.code) + instance.affiliation = validated_data.get('affiliation', instance.affiliation) instance.updated_by_id = user_id instance.save() @@ -142,7 +143,6 @@ def validate_org_type(self, organization): raise serializers.ValidationError( "Invalid organization affiliation" ) - return organization def validate_affiliation(self, affiliation_id):