fromnextgiswebimportDBSessionfromnextgisweb.vector_layerimportVectorLayerimporttransactiondefupdate_any_field():# start session and transactionngw_session=DBSession()transaction.manager.begin()# get vector layerlayer=ngw_session.query(VectorLayer).first()ifnotlayer:return# get featuresquery=layer.feature_query()# enumerate featuresforfeatinquery():# set value for field (make sure that the field exists in the layer!)feat.fields['test']='new_value'# save to layerlayer.feature_put(feat)# commit all changestransaction.manager.commit()