Define a default value for Order.payment_fee

This commit is contained in:
Raphael Michel
2015-03-08 16:07:18 +01:00
parent 81ab0a4fd2
commit 8aec2cc6b0
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0016_auto_20150308_1017'),
]
operations = [
migrations.AlterField(
model_name='order',
name='payment_fee',
field=models.DecimalField(verbose_name='Payment method fee', default=0, max_digits=10, decimal_places=2),
),
]

View File

@@ -1270,7 +1270,7 @@ class Order(Versionable):
)
payment_fee = models.DecimalField(
decimal_places=2, max_digits=10,
verbose_name=_("Payment method fee")
default=0, verbose_name=_("Payment method fee")
)
payment_info = models.TextField(
verbose_name=_("Payment information"),