Relate UserCardDetail to CustomUser and rename some fields
This commit is contained in:
parent
707f1a8768
commit
a4b63e220a
1 changed files with 3 additions and 3 deletions
|
@ -185,10 +185,10 @@ class VMDetail(models.Model):
|
||||||
|
|
||||||
class UserCardDetail(AssignPermissionsMixin, models.Model):
|
class UserCardDetail(AssignPermissionsMixin, models.Model):
|
||||||
permissions = ('view_usercarddetail',)
|
permissions = ('view_usercarddetail',)
|
||||||
customer = models.ForeignKey(StripeCustomer)
|
user = models.ForeignKey(CustomUser)
|
||||||
stripe_id = models.CharField(unique=True, max_length=100)
|
stripe_customer_id = models.CharField(unique=True, max_length=100)
|
||||||
last4 = models.CharField(max_length=4)
|
last4 = models.CharField(max_length=4)
|
||||||
cc_brand = models.CharField(max_length=10)
|
brand = models.CharField(max_length=10)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
permissions = (
|
permissions = (
|
||||||
|
|
Loading…
Reference in a new issue