summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2019-08-29 12:56:34 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-09-07 12:01:43 (GMT)
commit9c4af78b0457ee9b4f2db0df29b93d8915d6eab6 (patch)
treee0064ca6b824af42a2ae80946ab671f8f2cbce24
parentb96880ace61b15eadb02014a712706722d3d56eb (diff)
downloadcombo-9c4af78b0457ee9b4f2db0df29b93d8915d6eab6.zip
combo-9c4af78b0457ee9b4f2db0df29b93d8915d6eab6.tar.gz
combo-9c4af78b0457ee9b4f2db0df29b93d8915d6eab6.tar.bz2
maps: use ICONS as choices in icon field migrations (#35668)
-rw-r--r--combo/apps/maps/migrations/0001_initial.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/combo/apps/maps/migrations/0001_initial.py b/combo/apps/maps/migrations/0001_initial.py
index 9e463a9..71ed0b3 100644
--- a/combo/apps/maps/migrations/0001_initial.py
+++ b/combo/apps/maps/migrations/0001_initial.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
+from combo.apps.maps.models import ICONS
from django.db import migrations, models
@@ -18,7 +19,7 @@ class Migration(migrations.Migration):
('slug', models.SlugField(verbose_name='Identifier')),
('geojson_url', models.URLField(max_length=1024, verbose_name='Geojson URL')),
('marker_colour', models.CharField(default=b'#0000FF', max_length=7, verbose_name='Marker colour')),
- ('icon', models.CharField(blank=True, max_length=32, null=True, verbose_name='Marker icon', choices=[(b'book', 'Book'), (b'house', 'House'), (b'building', 'Building'), (b'hospital', 'Hospital'), (b'ambulance', 'Ambulance'), (b'taxi', 'Taxi'), (b'subway', 'Subway'), (b'wheelchair', 'Wheelchair'), (b'bicycle', 'Bicycle'), (b'car', 'Car'), (b'train', 'Train'), (b'bus', 'Bus'), (b'motorcycle', 'Motorcycle'), (b'truck', 'Truck'), (b'shower', 'Shower'), (b'trash', 'Trash'), (b'recycle', 'Recycle'), (b'university', 'University')])),
+ ('icon', models.CharField(blank=True, max_length=32, null=True, verbose_name='Marker icon', choices=ICONS)),
('icon_colour', models.CharField(default=b'#000000', max_length=7, verbose_name='Icon colour')),
],
options={'ordering': ('label',)}