mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
CartPosition: add max_extend field
This commit is contained in:
18
src/pretix/base/migrations/0280_cartposition_max_extend.py
Normal file
18
src/pretix/base/migrations/0280_cartposition_max_extend.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.20 on 2025-05-14 14:58
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('pretixbase', '0279_discount_event_date_from_discount_event_date_until'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='cartposition',
|
||||||
|
name='max_extend',
|
||||||
|
field=models.DateTimeField(null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -3098,7 +3098,10 @@ class CartPosition(AbstractPosition):
|
|||||||
verbose_name=_("Expiration date"),
|
verbose_name=_("Expiration date"),
|
||||||
db_index=True
|
db_index=True
|
||||||
)
|
)
|
||||||
|
max_extend = models.DateTimeField(
|
||||||
|
verbose_name=_("Limit for extending expiration date"),
|
||||||
|
null=True
|
||||||
|
)
|
||||||
tax_rate = models.DecimalField(
|
tax_rate = models.DecimalField(
|
||||||
max_digits=7, decimal_places=2, default=Decimal('0.00'),
|
max_digits=7, decimal_places=2, default=Decimal('0.00'),
|
||||||
verbose_name=_('Tax rate')
|
verbose_name=_('Tax rate')
|
||||||
|
|||||||
Reference in New Issue
Block a user