Skip to content

Commit

Permalink
refactor: impacts #17, #21, and #6, making Category many-to-many
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Mar 24, 2020
1 parent b2524d7 commit 4c8c1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdi/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Meta:


class OrganizationSerializer(CountryFieldMixin, GeoFeatureModelSerializer):
category = serializers.StringRelatedField(source='category.name')
categories = serializers.StringRelatedField(many=True)
source = serializers.StringRelatedField(source='source.name')
type = serializers.StringRelatedField(source='type.name')
sectors = serializers.StringRelatedField(many=True)
Expand All @@ -87,7 +87,7 @@ class Meta:
'id',
'name',
'description',
'category',
'categories',
'type',
'sectors',
'address',
Expand Down

0 comments on commit 4c8c1bb

Please sign in to comment.