Add preferred card field to UserCardDetail
This commit is contained in:
parent
f3ca9110e1
commit
9a9a764023
2 changed files with 4 additions and 3 deletions
|
@ -1,11 +1,10 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2017-10-15 17:42
|
||||
# Generated by Django 1.9.4 on 2017-10-15 18:05
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
import django.db.models.deletion
|
||||
import utils.mixins
|
||||
|
||||
|
||||
|
@ -24,6 +23,7 @@ class Migration(migrations.Migration):
|
|||
('stripe_customer_id', models.CharField(max_length=100, unique=True)),
|
||||
('last4', models.CharField(max_length=4)),
|
||||
('brand', models.CharField(max_length=10)),
|
||||
('preferred', models.BooleanField(default=False)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
|
|
|
@ -189,6 +189,7 @@ class UserCardDetail(AssignPermissionsMixin, models.Model):
|
|||
stripe_customer_id = models.CharField(unique=True, max_length=100)
|
||||
last4 = models.CharField(max_length=4)
|
||||
brand = models.CharField(max_length=10)
|
||||
preferred = models.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
|
|
Loading…
Reference in a new issue