Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1348 | Org Listing API | added type
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 29, 2022
1 parent 0f34780 commit c4a0bec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/orgs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@


class OrganizationListSerializer(serializers.ModelSerializer):
type = serializers.CharField(source='resource_type', read_only=True)
id = serializers.CharField(source='mnemonic')

class Meta:
model = Organization
fields = ('id', 'name', 'url')
fields = ('id', 'name', 'url', 'type')


class OrganizationCreateSerializer(serializers.ModelSerializer):
Expand Down

0 comments on commit c4a0bec

Please sign in to comment.