|
|
@ -25,6 +25,7 @@ class LocationSerializer(serializers.ModelSerializer):
|
|
|
|
class OrganizationListSerializer(serializers.ModelSerializer):
|
|
|
|
class OrganizationListSerializer(serializers.ModelSerializer):
|
|
|
|
location = LocationSerializer()
|
|
|
|
location = LocationSerializer()
|
|
|
|
images = serializers.StringRelatedField(source='organization_images', many=True)
|
|
|
|
images = serializers.StringRelatedField(source='organization_images', many=True)
|
|
|
|
|
|
|
|
category = serializers.StringRelatedField()
|
|
|
|
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
class Meta:
|
|
|
|
model = Organization
|
|
|
|
model = Organization
|
|
|
|