Skip to content

Commit

Permalink
clean-up and revert old changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnetordoff authored and John Tordoff committed Jul 26, 2023
1 parent df3edce commit 2fdb2ad
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions api/addons/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ def get_absolute_url(self, obj):
# than top-level objects.
return

query_kwargs = {
'path': obj['path'],
'id': obj['id'],
}

return absolute_reverse(
'nodes:node-addon-folders',
kwargs=self.context['request'].parser_context['kwargs'],
query_kwargs=query_kwargs,
query_kwargs={
'path': obj['path'],
'id': obj['id']
}
)

def get_root_folder(self, obj):
Expand Down

0 comments on commit 2fdb2ad

Please sign in to comment.