Fixed #65 -- Disallow None value for product default prices

This commit is contained in:
Raphael Michel
2015-07-26 16:31:01 +02:00
parent 984730b31b
commit a0e8e06743
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0006_auto_20150726_1420'),
]
operations = [
migrations.AlterField(
model_name='item',
name='default_price',
field=models.DecimalField(verbose_name='Default price', default=0, decimal_places=2, max_digits=7),
preserve_default=False,
),
]