Skip to content

Commit

Permalink
Merge pull request #134 from SubstraFoundation/fix_description_route
Browse files Browse the repository at this point in the history
Fix description route
  • Loading branch information
jmorel authored Jan 29, 2020
2 parents fd2dce3 + 421b67e commit 4aa5089
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions backend/substrapp/views/aggregatealgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,6 @@ class AggregateAlgoPermissionViewSet(PermissionMixin,
def file(self, request, *args, **kwargs):
return self.download_file(request, 'file', 'content')

@action(detail=True)
def description(self, request, *args, **kwargs):
@action(detail=True, url_path='description', url_name='description')
def description_(self, request, *args, **kwargs):
return self.download_file(request, 'description')
4 changes: 2 additions & 2 deletions backend/substrapp/views/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ class AlgoPermissionViewSet(PermissionMixin,
def file(self, request, *args, **kwargs):
return self.download_file(request, 'file', 'content')

@action(detail=True)
def description(self, request, *args, **kwargs):
@action(detail=True, url_path='description', url_name='description')
def description_(self, request, *args, **kwargs):
return self.download_file(request, 'description')
4 changes: 2 additions & 2 deletions backend/substrapp/views/compositealgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,6 @@ class CompositeAlgoPermissionViewSet(PermissionMixin,
def file(self, request, *args, **kwargs):
return self.download_file(request, 'file', 'content')

@action(detail=True)
def description(self, request, *args, **kwargs):
@action(detail=True, url_path='description', url_name='description')
def description_(self, request, *args, **kwargs):
return self.download_file(request, 'description')
4 changes: 2 additions & 2 deletions backend/substrapp/views/datamanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ class DataManagerPermissionViewSet(PermissionMixin,
serializer_class = DataManagerSerializer
ledger_query_call = 'queryDataManager'

@action(detail=True)
def description(self, request, *args, **kwargs):
@action(detail=True, url_path='description', url_name='description')
def description_(self, request, *args, **kwargs):
return self.download_file(request, 'description')

@action(detail=True)
Expand Down
4 changes: 2 additions & 2 deletions backend/substrapp/views/objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ class ObjectivePermissionViewSet(PermissionMixin,
serializer_class = ObjectiveSerializer
ledger_query_call = 'queryObjective'

@action(detail=True)
def description(self, request, *args, **kwargs):
@action(detail=True, url_path='description', url_name='description')
def description_(self, request, *args, **kwargs):
return self.download_file(request, 'description')

@action(detail=True)
Expand Down

0 comments on commit 4aa5089

Please sign in to comment.