Skip to content

Commit

Permalink
Fix Share modal behavior in project listing
Browse files Browse the repository at this point in the history
The Share modal relies on the project.hydroshare field to work
correctly, which was missing from the ProjectListing serializer.
By adding it there, we ensure that the share modal works correctly.
  • Loading branch information
rajadain committed Jan 22, 2018
1 parent 08285da commit 776601b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mmw/apps/modeling/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ class ProjectListingSerializer(gis_serializers.GeoModelSerializer):
class Meta:
model = Project
fields = ('id', 'name', 'area_of_interest_name', 'is_private',
'model_package', 'created_at', 'modified_at', 'user')
'model_package', 'created_at', 'modified_at', 'user',
'hydroshare')

hydroshare = HydroShareResourceSerializer(read_only=True)


class ProjectUpdateSerializer(gis_serializers.GeoModelSerializer):
Expand Down

0 comments on commit 776601b

Please sign in to comment.