diff --git a/src/shop/migrations/0038_auto_20170323_2021.py b/src/shop/migrations/0038_auto_20170323_2021.py new file mode 100644 index 00000000..bb761986 --- /dev/null +++ b/src/shop/migrations/0038_auto_20170323_2021.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-03-23 19:21 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('shop', '0037_auto_20170319_2204'), + ] + + operations = [ + migrations.AlterField( + model_name='order', + name='payment_method', + field=models.CharField(blank=True, choices=[('credit_card', 'Credit card'), ('blockchain', 'Blockchain'), ('bank_transfer', 'Bank transfer'), ('cash', 'Cash')], default='', max_length=50), + ), + ] diff --git a/src/shop/models.py b/src/shop/models.py index 56e68b00..167c67ab 100644 --- a/src/shop/models.py +++ b/src/shop/models.py @@ -95,6 +95,7 @@ class Order(CreatedUpdatedModel): max_length=50, choices=PAYMENT_METHOD_CHOICES, default='', + blank=True ) cancelled = models.BooleanField(default=False)