Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Fabiani committed Apr 26, 2018
1 parent ba3fb4b commit 7d8d53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def file_upload(filename,
layer.upload_session = upload_session

# update with new information
db_layer = Layer.objects.filter(id=layer.id)
db_layer = Layer.objects.get(id=layer.id)

defaults['upload_session'] = upload_session
defaults['title'] = defaults.get('title', None) or layer.title
Expand Down

0 comments on commit 7d8d53c

Please sign in to comment.