rename Area.categories to Area.category

This commit is contained in:
Laura Klünder 2017-05-04 12:10:41 +02:00
parent 857788bcf6
commit 4441ca1b74
2 changed files with 21 additions and 1 deletions

View 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',
),
]

View file

@ -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: