Skip to content

Commit

Permalink
[Fixes #10168] Add 'executions' field to concrete instance endpoints (#…
Browse files Browse the repository at this point in the history
…10169) (#10170)

* [Fixes #10168] Add 'executions' field to concrete instance endpoints

* [Fixes #10168] Add 'executions' field to concrete instance endpoints

Co-authored-by: mattiagiupponi <51856725+mattiagiupponi@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and mattiagiupponi authored Oct 19, 2022
1 parent 6dbfe51 commit 3d9c94a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion geonode/documents/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ class Meta:
view_name = 'documents-list'
fields = (
'pk', 'uuid', 'name', 'href',
'subtype', 'extension', 'mime_type'
'subtype', 'extension', 'mime_type',
'executions'
)
1 change: 1 addition & 0 deletions geonode/geoapps/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Meta:
view_name = 'geoapps-list'
fields = (
'pk', 'uuid', 'data', 'name',
'executions'
)

def extra_update_checks(self, validated_data):
Expand Down
3 changes: 2 additions & 1 deletion geonode/layers/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ class Meta:
fields = (
'pk', 'uuid', 'name', 'workspace', 'store', 'subtype', 'charset',
'is_mosaic', 'has_time', 'has_elevation', 'time_regex', 'elevation_regex',
'featureinfo_custom_template', 'ows_url', 'ptype', 'default_style', 'styles', 'attribute_set'
'featureinfo_custom_template', 'ows_url', 'ptype', 'default_style', 'styles', 'attribute_set',
'executions'
)

name = serializers.CharField(read_only=True)
Expand Down
1 change: 1 addition & 0 deletions geonode/maps/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class Meta:
"featuredurl",
"data",
"maplayers",
'executions'
)


Expand Down

0 comments on commit 3d9c94a

Please sign in to comment.