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)