mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
add label to reusablemedium
This commit is contained in:
committed by
Martin Gross
parent
dd247c47f8
commit
ab49d09c18
@@ -152,6 +152,8 @@ class ReusableMediaSerializer(I18nAwareModelSerializer):
|
|||||||
'updated',
|
'updated',
|
||||||
'type',
|
'type',
|
||||||
'identifier',
|
'identifier',
|
||||||
|
'secret',
|
||||||
|
'label',
|
||||||
'active',
|
'active',
|
||||||
'expires',
|
'expires',
|
||||||
'customer',
|
'customer',
|
||||||
|
|||||||
@@ -15,6 +15,11 @@ class Migration(migrations.Migration):
|
|||||||
name="secret",
|
name="secret",
|
||||||
field=models.CharField(max_length=200, null=True),
|
field=models.CharField(max_length=200, null=True),
|
||||||
),
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="reusablemedium",
|
||||||
|
name="label",
|
||||||
|
field=models.CharField(max_length=200, null=True),
|
||||||
|
),
|
||||||
# use temporary related_name "linked_mediums" for ManyToManyField, so we can migrate existing data
|
# use temporary related_name "linked_mediums" for ManyToManyField, so we can migrate existing data
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name="reusablemedium",
|
model_name="reusablemedium",
|
||||||
|
|||||||
@@ -77,6 +77,11 @@ class ReusableMedium(LoggedModel):
|
|||||||
verbose_name=pgettext_lazy('reusable_medium', 'Secret'),
|
verbose_name=pgettext_lazy('reusable_medium', 'Secret'),
|
||||||
null=True, blank=True
|
null=True, blank=True
|
||||||
)
|
)
|
||||||
|
label = models.CharField(
|
||||||
|
max_length=200,
|
||||||
|
verbose_name=pgettext_lazy('reusable_medium', 'Label'),
|
||||||
|
null=True, blank=True
|
||||||
|
)
|
||||||
|
|
||||||
active = models.BooleanField(
|
active = models.BooleanField(
|
||||||
verbose_name=_('Active'),
|
verbose_name=_('Active'),
|
||||||
|
|||||||
Reference in New Issue
Block a user