Browse Source

Add youth payment type. (#43)

feature/letsencrypt-webroot
Drew Larson 8 years ago
committed by GitHub
parent
commit
34f0a5c563
  1. 20
      bikeshop_project/core/migrations/0004_auto_20170502_0120.py
  2. 1
      bikeshop_project/core/models.py

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

1
bikeshop_project/core/models.py

@ -40,6 +40,7 @@ class Payment(models.Model):
('VOLUNTEERING', 'Volunteering'), ('VOLUNTEERING', 'Volunteering'),
('SQUARE', 'Square'), ('SQUARE', 'Square'),
('PAYPAL', 'PayPal'), ('PAYPAL', 'PayPal'),
('YOUTH', 'Youth'),
('UNKNOWN', 'Unknown') ('UNKNOWN', 'Unknown')
) )
type = models.CharField(max_length=12, choices=payment_choices, default='NONE') type = models.CharField(max_length=12, choices=payment_choices, default='NONE')

Loading…
Cancel
Save