From 48dd43d3ea7290e351cb0a93f02ebeb72a740038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 12 Feb 2018 16:05:25 +0100 Subject: [PATCH] create place pages for taxi stations (#19287) --- combo_plugin_gnm/management/commands/gnm_create_places.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/combo_plugin_gnm/management/commands/gnm_create_places.py b/combo_plugin_gnm/management/commands/gnm_create_places.py index da2940b..8cdb0cb 100644 --- a/combo_plugin_gnm/management/commands/gnm_create_places.py +++ b/combo_plugin_gnm/management/commands/gnm_create_places.py @@ -25,7 +25,7 @@ from combo.data.models import Page, ConfigJsonCell class Command(BaseCommand): def handle(self, *args, **options): - layers = ['mdr', 'piscine', 'mairie', 'bibliotheque', 'decheterie', 'donnerie'] + layers = ['mdr', 'piscine', 'mairie', 'bibliotheque', 'decheterie', 'donnerie', 'taxi'] places_page = Page.objects.get(slug='lieux') for layer in MapLayer.objects.filter(slug__in=layers): @@ -54,6 +54,8 @@ class Command(BaseCommand): page.title = u'Déchèterie %s' % feature['properties']['commune'] elif layer.slug == 'donnerie': page.title = u'Donnerie %s' % feature['properties']['commune'] + elif layer.slug == 'taxi': + page.title = u'Station de taxi %s' % feature['properties']['adresse'] else: page.title = feature['properties']['nom'] page.parent = Page.objects.get(slug=layer.slug)