Skip to content

Commit

Permalink
Merge pull request #1368 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
fix(Organization edit api): issue in affiliation and district id update
  • Loading branch information
Aashish Vinu authored Oct 18, 2023
2 parents ea8ce8c + 63e6fd9 commit 51aee2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/dashboard/organisation/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -142,7 +143,6 @@ def validate_org_type(self, organization):
raise serializers.ValidationError(
"Invalid organization affiliation"
)

return organization

def validate_affiliation(self, affiliation_id):
Expand Down

0 comments on commit 51aee2e

Please sign in to comment.