From 34f0a5c5632b93a1350996dd48886ffa5961729c Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Mon, 1 May 2017 20:01:04 -0600 Subject: [PATCH] Add youth payment type. (#43) --- .../migrations/0004_auto_20170502_0120.py | 20 +++++++++++++++++++ bikeshop_project/core/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 bikeshop_project/core/migrations/0004_auto_20170502_0120.py diff --git a/bikeshop_project/core/migrations/0004_auto_20170502_0120.py b/bikeshop_project/core/migrations/0004_auto_20170502_0120.py new file mode 100644 index 0000000..63494da --- /dev/null +++ b/bikeshop_project/core/migrations/0004_auto_20170502_0120.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.4 on 2017-05-02 01:20 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0003_auto_20170219_1741'), + ] + + operations = [ + migrations.AlterField( + model_name='payment', + name='type', + field=models.CharField(choices=[('NONE', 'None'), ('CASH', 'Cash'), ('CHEQUE', 'Cheque'), ('VOLUNTEERING', 'Volunteering'), ('SQUARE', 'Square'), ('PAYPAL', 'PayPal'), ('YOUTH', 'Youth'), ('UNKNOWN', 'Unknown')], default='NONE', max_length=12), + ), + ] diff --git a/bikeshop_project/core/models.py b/bikeshop_project/core/models.py index c1efc75..8a2884c 100644 --- a/bikeshop_project/core/models.py +++ b/bikeshop_project/core/models.py @@ -40,6 +40,7 @@ class Payment(models.Model): ('VOLUNTEERING', 'Volunteering'), ('SQUARE', 'Square'), ('PAYPAL', 'PayPal'), + ('YOUTH', 'Youth'), ('UNKNOWN', 'Unknown') ) type = models.CharField(max_length=12, choices=payment_choices, default='NONE')