From 167e3589d4d5daa25b2890bede3c2e4c7dc932ec Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Sun, 15 Oct 2017 21:21:36 +0200 Subject: [PATCH] Rename user to stripe_customer --- hosting/migrations/0044_usercarddetail.py | 4 ++-- hosting/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hosting/migrations/0044_usercarddetail.py b/hosting/migrations/0044_usercarddetail.py index 458b3111..c2ff25b2 100644 --- a/hosting/migrations/0044_usercarddetail.py +++ b/hosting/migrations/0044_usercarddetail.py @@ -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'),), diff --git a/hosting/models.py b/hosting/models.py index 3efd6dd1..a33f51d5 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -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)