dynamicweb/hosting/migrations/0046_usercarddetail.py

37 lines
1.4 KiB
Python
Raw Normal View History

2017-10-15 17:56:40 +00:00
# -*- coding: utf-8 -*-
2018-07-03 20:34:59 +00:00
# Generated by Django 1.9.4 on 2018-07-03 20:32
2017-10-15 17:56:40 +00:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
2017-10-15 17:56:40 +00:00
import utils.mixins
class Migration(migrations.Migration):
dependencies = [
2018-06-12 06:28:46 +00:00
('membership', '0007_auto_20180213_0128'),
2018-07-03 20:34:59 +00:00
('hosting', '0045_auto_20180701_2028'),
2017-10-15 17:56:40 +00:00
]
operations = [
migrations.CreateModel(
name='UserCardDetail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('last4', models.CharField(max_length=4)),
('brand', models.CharField(max_length=10)),
('card_id', models.CharField(blank=True, default='', max_length=100)),
('fingerprint', models.CharField(max_length=100)),
('exp_month', models.IntegerField()),
('exp_year', models.IntegerField()),
('preferred', models.BooleanField(default=False)),
2017-10-15 19:21:36 +00:00
('stripe_customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='membership.StripeCustomer')),
2017-10-15 17:56:40 +00:00
],
options={
'permissions': (('view_usercarddetail', 'View User Card'),),
},
bases=(utils.mixins.AssignPermissionsMixin, models.Model),
),
]