From f0b19816e955bacd970a488031fcaa1c6930ce13 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 28 Oct 2017 15:57:49 +0200 Subject: Town: generate geo field on save --- ishtar_common/management/commands/import_insee_comm_csv.py | 1 - 1 file changed, 1 deletion(-) (limited to 'ishtar_common/management') diff --git a/ishtar_common/management/commands/import_insee_comm_csv.py b/ishtar_common/management/commands/import_insee_comm_csv.py index d0fccb2fc..97b680267 100644 --- a/ishtar_common/management/commands/import_insee_comm_csv.py +++ b/ishtar_common/management/commands/import_insee_comm_csv.py @@ -90,7 +90,6 @@ class Command(BaseCommand): for town in linked: if town.generate_geo(): nb_limit += 1 - town.save() sys.stdout.write('\n* {} town created\n'.format(nb_created)) sys.stdout.write('* {} link created\n'.format(nb_link)) sys.stdout.write('* {} limit generated\n'.format(nb_limit)) -- cgit v1.2.3