From a4b63e220adb697b36dc93cff0e5529262638185 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Sun, 15 Oct 2017 19:49:44 +0200 Subject: [PATCH] Relate UserCardDetail to CustomUser and rename some fields --- hosting/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosting/models.py b/hosting/models.py index 243e53c0..dd792ca5 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -185,10 +185,10 @@ class VMDetail(models.Model): class UserCardDetail(AssignPermissionsMixin, models.Model): permissions = ('view_usercarddetail',) - customer = models.ForeignKey(StripeCustomer) - stripe_id = models.CharField(unique=True, max_length=100) + user = models.ForeignKey(CustomUser) + stripe_customer_id = models.CharField(unique=True, max_length=100) last4 = models.CharField(max_length=4) - cc_brand = models.CharField(max_length=10) + brand = models.CharField(max_length=10) class Meta: permissions = (