forked from CGM_Public/pretix_original
Add SubEvent.frontpage_text
This commit is contained in:
21
src/pretix/base/migrations/0068_subevent_frontpage_text.py
Normal file
21
src/pretix/base/migrations/0068_subevent_frontpage_text.py
Normal 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'),
|
||||
),
|
||||
]
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user