Skip to content

Commit

Permalink
Change media into feature properties to object with mimetype.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Dec 13, 2024
1 parent 7c81358 commit 5a64aea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g3w-admin/editing/api/base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ def save_vector_data(self, metadata_layer, post_layer_data, has_transactions, po
fnames = [f.name() for f in feature.fields()]
jfeature = json.loads(ex.exportFeature(feature, dict(zip(fnames, feature.attributes()))))

self.change_media([jfeature])

# For date and datetime and time fields:
if field_datetime_values:
for fname, fvalue in jfeature['properties'].items():
Expand Down

0 comments on commit 5a64aea

Please sign in to comment.