0001-maps-order-map-layers-alphabetically-16907.patch
combo/apps/maps/migrations/0001_initial.py | ||
---|---|---|
21 | 21 |
('icon', models.CharField(blank=True, max_length=32, null=True, verbose_name='Marker icon', choices=[(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')])), |
22 | 22 |
('icon_colour', models.CharField(default=b'#FFFFFF', max_length=7, verbose_name='Icon colour')), |
23 | 23 |
], |
24 |
options={'ordering': ('label',)} |
|
24 | 25 |
), |
25 | 26 |
] |
combo/apps/maps/models.py | ||
---|---|---|
65 | 65 |
_('Include user identifier in request'), |
66 | 66 |
default=True) |
67 | 67 | |
68 |
class Meta: |
|
69 |
ordering = ('label',) |
|
70 | ||
68 | 71 |
def save(self, *args, **kwargs): |
69 | 72 |
if not self.slug: |
70 | 73 |
base_slug = slugify(self.label) |
71 |
- |