Can someone explain why the below mentioned behavior happens, in debug mode, why cannot I update a list element value:
I don't get, what I'm doing wrong? My code:
if request.method == 'GET':
coordinates = mongo_harassments_utils.get_geolocated({})
count = coordinates.count()
for i in range(coordinates.count()):
first = coordinates[i]["story"]
coordinates[i]["story"] = "Test"
second = coordinates[i]["story"]
