Rename user to stripe_customer

This commit is contained in:
M.Ravi 2017-10-15 21:21:36 +02:00
parent a1d7b07e0c
commit 167e3589d4
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# -*- 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 django.db import migrations, models
@ -25,7 +25,7 @@ class Migration(migrations.Migration):
('exp_month', models.IntegerField()),
('exp_year', models.IntegerField()),
('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={
'permissions': (('view_usercarddetail', 'View User Card'),),

View file

@ -185,7 +185,7 @@ class VMDetail(models.Model):
class UserCardDetail(AssignPermissionsMixin, models.Model):
permissions = ('view_usercarddetail',)
user = models.ForeignKey(StripeCustomer)
stripe_customer = models.ForeignKey(StripeCustomer)
last4 = models.CharField(max_length=4)
brand = models.CharField(max_length=10)
fingerprint = models.CharField(max_length=100)