Rename user to stripe_customer
This commit is contained in:
parent
a1d7b07e0c
commit
167e3589d4
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.9.4 on 2017-10-15 19:17
|
# Generated by Django 1.9.4 on 2017-10-15 19:20
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -25,7 +25,7 @@ class Migration(migrations.Migration):
|
||||||
('exp_month', models.IntegerField()),
|
('exp_month', models.IntegerField()),
|
||||||
('exp_year', models.IntegerField()),
|
('exp_year', models.IntegerField()),
|
||||||
('preferred', models.BooleanField(default=False)),
|
('preferred', models.BooleanField(default=False)),
|
||||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='membership.StripeCustomer')),
|
('stripe_customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='membership.StripeCustomer')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'permissions': (('view_usercarddetail', 'View User Card'),),
|
'permissions': (('view_usercarddetail', 'View User Card'),),
|
||||||
|
|
|
@ -185,7 +185,7 @@ class VMDetail(models.Model):
|
||||||
|
|
||||||
class UserCardDetail(AssignPermissionsMixin, models.Model):
|
class UserCardDetail(AssignPermissionsMixin, models.Model):
|
||||||
permissions = ('view_usercarddetail',)
|
permissions = ('view_usercarddetail',)
|
||||||
user = models.ForeignKey(StripeCustomer)
|
stripe_customer = models.ForeignKey(StripeCustomer)
|
||||||
last4 = models.CharField(max_length=4)
|
last4 = models.CharField(max_length=4)
|
||||||
brand = models.CharField(max_length=10)
|
brand = models.CharField(max_length=10)
|
||||||
fingerprint = models.CharField(max_length=100)
|
fingerprint = models.CharField(max_length=100)
|
||||||
|
|
Loading…
Reference in a new issue