rename Area.categories to Area.category
This commit is contained in:
parent
857788bcf6
commit
4441ca1b74
2 changed files with 21 additions and 1 deletions
20
src/c3nav/mapdata/migrations/0043_auto_20170504_1010.py
Normal file
20
src/c3nav/mapdata/migrations/0043_auto_20170504_1010.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.4 on 2017-05-04 10:10
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mapdata', '0042_auto_20170504_1007'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='area',
|
||||
old_name='categories',
|
||||
new_name='category',
|
||||
),
|
||||
]
|
|
@ -128,7 +128,7 @@ class Area(GeometryMapItemWithLevel):
|
|||
)
|
||||
|
||||
public = models.BooleanField(verbose_name=_('public'))
|
||||
categories = models.CharField(verbose_name=_('category'), choices=CATEGORIES, max_length=16)
|
||||
category = models.CharField(verbose_name=_('category'), choices=CATEGORIES, max_length=16)
|
||||
layer = models.CharField(verbose_name=_('layer'), choices=LAYERS, max_length=16)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue