forked from CGM_Public/pretix_original
Allow for gt and gte selection of change_allow_user_price (#1746)
This commit is contained in:
@@ -960,13 +960,14 @@ DEFAULTS = {
|
||||
)
|
||||
},
|
||||
'change_allow_user_price': {
|
||||
'default': 'gt',
|
||||
'default': 'gte',
|
||||
'type': str,
|
||||
'form_class': forms.ChoiceField,
|
||||
'serializer_class': serializers.ChoiceField,
|
||||
'serializer_kwargs': dict(
|
||||
choices=(
|
||||
('gt', _('Only allow changes if the resulting price is higher or equal than the previous price.')),
|
||||
('gte', _('Only allow changes if the resulting price is higher or equal than the previous price.')),
|
||||
('gt', _('Only allow changes if the resulting price is higher than the previous price.')),
|
||||
('eq', _('Only allow changes if the resulting price is equal to the previous price.')),
|
||||
('any', _('Allow changes regardless of price, even if this results in a refund.')),
|
||||
)
|
||||
@@ -974,7 +975,8 @@ DEFAULTS = {
|
||||
'form_kwargs': dict(
|
||||
label=_("Requirement for changed prices"),
|
||||
choices=(
|
||||
('gt', _('Only allow changes if the resulting price is higher or equal than the previous price.')),
|
||||
('gte', _('Only allow changes if the resulting price is higher or equal than the previous price.')),
|
||||
('gt', _('Only allow changes if the resulting price is higher than the previous price.')),
|
||||
('eq', _('Only allow changes if the resulting price is equal to the previous price.')),
|
||||
('any', _('Allow changes regardless of price, even if this results in a refund.')),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user