From 02ef99b2b82f8ad29bd67eedaef1bf9887b93599 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Mon, 30 May 2016 20:38:46 -0600 Subject: [PATCH] Add `paid` field. --- .../core/migrations/0014_payment_paid.py | 20 +++++++++++++++++++ bikeshop_project/core/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 bikeshop_project/core/migrations/0014_payment_paid.py diff --git a/bikeshop_project/core/migrations/0014_payment_paid.py b/bikeshop_project/core/migrations/0014_payment_paid.py new file mode 100644 index 0000000..67223fe --- /dev/null +++ b/bikeshop_project/core/migrations/0014_payment_paid.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2016-05-31 02:38 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0013_auto_20160531_0236'), + ] + + operations = [ + migrations.AddField( + model_name='payment', + name='paid', + field=models.BooleanField(default=False), + ), + ] diff --git a/bikeshop_project/core/models.py b/bikeshop_project/core/models.py index deeae3e..1127e6e 100644 --- a/bikeshop_project/core/models.py +++ b/bikeshop_project/core/models.py @@ -34,6 +34,7 @@ class Payment(models.Model): ('PAYPAL', 'paypal') ) type = models.CharField(max_length=12, choices=payment_choices) + paid = models.BooleanField(default=False) created_at = models.DateTimeField(auto_now_add=True)