in formulaire.js line 17, we should have :  url: 'getTownList',
and in legal_documents.py, line 32 we have to replace the dict by
towns.append({
            'idobj': town.idobj,
            'numcom': town.numcom,
            'comnom': town.comnom,
            'numcad': numcad,
            'cadnom': cadnom,
            'nufeco': town.nufeco
        })
to get the stuff working