Added descriptions to item categories

This commit is contained in:
Raphael Michel
2016-04-21 21:48:53 +02:00
parent 38f0e6e6d6
commit 765ae39fa0
5 changed files with 38 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-21 19:43
from __future__ import unicode_literals
from django.db import migrations, models
import pretix.base.i18n
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0019_auto_20160326_1139'),
]
operations = [
migrations.AddField(
model_name='itemcategory',
name='description',
field=pretix.base.i18n.I18nTextField(blank=True, verbose_name='Category description'),
),
migrations.AlterField(
model_name='questionanswer',
name='options',
field=models.ManyToManyField(blank=True, related_name='answers', to='pretixbase.QuestionOption'),
),
]

View File

@@ -36,6 +36,9 @@ class ItemCategory(LoggedModel):
max_length=255,
verbose_name=_("Category name"),
)
description = I18nTextField(
blank=True, verbose_name=_("Category description")
)
position = models.IntegerField(
default=0
)