[July 2012] The custom to put a lock on a railing along the river and through the key away into the river to declare your eternal love started from an Italian film.
I found the locks here in Plaza Mayor in Madrid, too.
It is far away from the river, though.