permit blank

This commit is contained in:
Thomas Steen Rasmussen 2017-03-23 20:21:19 +01:00
parent 171553677c
commit eac9cbfa1e
2 changed files with 21 additions and 0 deletions

View file

@ -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),
),
]

View file

@ -95,6 +95,7 @@ class Order(CreatedUpdatedModel):
max_length=50, max_length=50,
choices=PAYMENT_METHOD_CHOICES, choices=PAYMENT_METHOD_CHOICES,
default='', default='',
blank=True
) )
cancelled = models.BooleanField(default=False) cancelled = models.BooleanField(default=False)