mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Change choices and default.
This commit is contained in:
parent
bb5d77b185
commit
68b005a2d6
20
bikeshop_project/core/migrations/0015_auto_20160531_0413.py
Normal file
20
bikeshop_project/core/migrations/0015_auto_20160531_0413.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2016-05-31 04:13
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0014_payment_paid'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='payment',
|
||||
name='type',
|
||||
field=models.CharField(choices=[('CASH', 'cash'), ('CHEQUE', 'cheque'), ('VOLUNTEERING', 'volunteering'), ('STRIPE', 'stripe'), ('PAYPAL', 'paypal')], default='None', max_length=12),
|
||||
),
|
||||
]
|
24
bikeshop_project/core/migrations/0016_auto_20160531_0416.py
Normal file
24
bikeshop_project/core/migrations/0016_auto_20160531_0416.py
Normal file
@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2016-05-31 04:16
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0015_auto_20160531_0413'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='payment',
|
||||
name='paid',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='payment',
|
||||
name='type',
|
||||
field=models.CharField(choices=[('NONE', 'None'), ('CASH', 'Cash'), ('CHEQUE', 'Cheque'), ('VOLUNTEERING', 'Volunteering'), ('STRIPE', 'Stripe'), ('PAYPAL', 'PayPal')], default='NONE', max_length=12),
|
||||
),
|
||||
]
|
@ -27,14 +27,14 @@ class Membership(models.Model):
|
||||
|
||||
class Payment(models.Model):
|
||||
payment_choices = (
|
||||
('CASH', 'cash'),
|
||||
('CHEQUE', 'cheque'),
|
||||
('VOLUNTEERING', 'volunteering'),
|
||||
('STRIPE', 'stripe'),
|
||||
('PAYPAL', 'paypal')
|
||||
('NONE', 'None'),
|
||||
('CASH', 'Cash'),
|
||||
('CHEQUE', 'Cheque'),
|
||||
('VOLUNTEERING', 'Volunteering'),
|
||||
('STRIPE', 'Stripe'),
|
||||
('PAYPAL', 'PayPal')
|
||||
)
|
||||
type = models.CharField(max_length=12, choices=payment_choices)
|
||||
paid = models.BooleanField(default=False)
|
||||
type = models.CharField(max_length=12, choices=payment_choices, default='NONE')
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user