Skip to content

Commit

Permalink
Clean up: Get OrganizationSerializer class from viewset utility fn
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankApiyo committed Aug 19, 2024
1 parent 1a99111 commit ba44d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/apps/api/viewsets/organization_profile_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def members(self, request, *args, **kwargs):

serializer.save()

data = OrganizationSerializer(
data = self.serializer_class(
organization, context={"request": request}
).data
# pylint: disable=attribute-defined-outside-init
Expand Down

0 comments on commit ba44d71

Please sign in to comment.