Skip to content

Commit

Permalink
[Fixes #12368] Fix build and broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Oct 15, 2024
1 parent cab567f commit 6d6aae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/upload/handlers/common/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _get_resource(self, _exec):
if resource_id:
dataset = get_object_or_404(Dataset, pk=resource_id)
elif pk:
dataset = get_object_or_404(Dataset, alternate=pk)
dataset = get_object_or_404(Dataset, pk=pk)
return dataset

def handle_metadata_resource(self, _exec, dataset, original_handler):
Expand Down

0 comments on commit 6d6aae2

Please sign in to comment.