Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
pass layer name not file basename
Browse files Browse the repository at this point in the history
  • Loading branch information
sarasafavi committed Sep 24, 2016
1 parent e0b1823 commit e9e36a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osgeo_importer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def form_valid(self, form):
upload.uploadlayer_set.add(
UploadLayer(
upload_file=upfile,
name=upfile_basename,
name=layer.get('layer_name'),
fields=layer.get('fields', {}),
index=layer.get('index'),
feature_count=layer.get('feature_count', None),
Expand Down

0 comments on commit e9e36a3

Please sign in to comment.