Browse Source

Add `paid` field.

feature/python-error-tracking
Drew Larson 9 years ago
parent
commit
02ef99b2b8
  1. 20
      bikeshop_project/core/migrations/0014_payment_paid.py
  2. 1
      bikeshop_project/core/models.py

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

1
bikeshop_project/core/models.py

@ -34,6 +34,7 @@ class Payment(models.Model):
('PAYPAL', 'paypal') ('PAYPAL', 'paypal')
) )
type = models.CharField(max_length=12, choices=payment_choices) type = models.CharField(max_length=12, choices=payment_choices)
paid = models.BooleanField(default=False)
created_at = models.DateTimeField(auto_now_add=True) created_at = models.DateTimeField(auto_now_add=True)

Loading…
Cancel
Save