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 4e14df5 commit ba3fb4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,8 @@ def file_upload(filename,
defaults['category'] = defaults.get('category', None) or layer.category

db_layer.update(**defaults)
layer.refresh_from_db()
db_layer.refresh_from_db()
layer = db_layer

# Pass the parameter overwrite to tell whether the
# geoserver_post_save_signal should upload the new file or not
Expand Down

0 comments on commit ba3fb4b

Please sign in to comment.