forked from CGM_Public/pretix_original
Add comment field to subevents (Z#23148472) (#4099)
* Add comment field to subevents (Z#23148472) * Review fix
This commit is contained in:
18
src/pretix/base/migrations/0262_subevent_comment.py
Normal file
18
src/pretix/base/migrations/0262_subevent_comment.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.10 on 2024-04-19 14:44
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("pretixbase", "0261_userknownloginsource"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="subevent",
|
||||
name="comment",
|
||||
field=models.TextField(null=True),
|
||||
),
|
||||
]
|
||||
@@ -1465,6 +1465,10 @@ class SubEvent(EventMixin, LoggedModel):
|
||||
|
||||
items = models.ManyToManyField('Item', through='SubEventItem')
|
||||
variations = models.ManyToManyField('ItemVariation', through='SubEventItemVariation')
|
||||
comment = models.TextField(
|
||||
verbose_name=_("Internal comment"),
|
||||
null=True, blank=True
|
||||
)
|
||||
|
||||
last_modified = models.DateTimeField(
|
||||
auto_now=True, db_index=True
|
||||
|
||||
Reference in New Issue
Block a user