0001-maps-use-ICONS-as-choices-in-icon-field-migrations-3.patch
combo/apps/maps/migrations/0001_initial.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
from __future__ import unicode_literals |
3 | 3 | |
4 |
from combo.apps.maps.models import ICONS |
|
4 | 5 |
from django.db import migrations, models |
5 | 6 | |
6 | 7 | |
... | ... | |
18 | 19 |
('slug', models.SlugField(verbose_name='Identifier')), |
19 | 20 |
('geojson_url', models.URLField(max_length=1024, verbose_name='Geojson URL')), |
20 | 21 |
('marker_colour', models.CharField(default=b'#0000FF', max_length=7, verbose_name='Marker colour')), |
21 |
('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')])),
|
|
22 |
('icon', models.CharField(blank=True, max_length=32, null=True, verbose_name='Marker icon', choices=ICONS)),
|
|
22 | 23 |
('icon_colour', models.CharField(default=b'#000000', max_length=7, verbose_name='Icon colour')), |
23 | 24 |
], |
24 | 25 |
options={'ordering': ('label',)} |
25 |
- |