mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Event setting for maximum number of tickets per order
This commit is contained in:
22
src/pretixbase/migrations/0007_auto_20150212_0939.py
Normal file
22
src/pretixbase/migrations/0007_auto_20150212_0939.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import versions.models
|
||||
import pretixbase.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('pretixbase', '0006_auto_20150212_0908'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='event',
|
||||
name='max_items_per_order',
|
||||
field=models.IntegerField(verbose_name='Maximum number of items per order', default=10),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
@@ -343,6 +343,10 @@ class Event(Versionable):
|
||||
null=True, blank=True,
|
||||
verbose_name=_("Plugins"),
|
||||
)
|
||||
max_items_per_order = models.IntegerField(
|
||||
verbose_name=_("Maximum number of items per order"),
|
||||
default=10
|
||||
)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Event")
|
||||
|
||||
@@ -44,6 +44,7 @@ class EventUpdateForm(VersionedModelForm):
|
||||
'presale_end',
|
||||
'payment_term_days',
|
||||
'payment_term_last',
|
||||
'max_items_per_order'
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user