Add SubEvent.frontpage_text

This commit is contained in:
Raphael Michel
2017-07-14 18:14:24 +02:00
parent 1fabe5a7cf
commit bcdc75953e
5 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-14 16:11
from __future__ import unicode_literals
import i18nfield.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0067_auto_20170712_1610'),
]
operations = [
migrations.AddField(
model_name='subevent',
name='frontpage_text',
field=i18nfield.fields.I18nTextField(blank=True, null=True, verbose_name='Frontpage text'),
),
]

View File

@@ -456,6 +456,10 @@ class SubEvent(EventMixin, LoggedModel):
max_length=200,
verbose_name=_("Location"),
)
frontpage_text = I18nTextField(
null=True, blank=True,
verbose_name=_("Frontpage text")
)
items = models.ManyToManyField('Item', through='SubEventItem')
variations = models.ManyToManyField('ItemVariation', through='SubEventItemVariation')