Add stripe_plan_name field to datacenterlight's StripePlan model

This commit is contained in:
PCoder 2019-04-20 11:53:47 +02:00
parent 44ffd042a6
commit 4be098d07a
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2019-04-20 09:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datacenterlight', '0027_dclcalculatorpluginmodel_enable_512mb_ram'),
]
operations = [
migrations.AddField(
model_name='stripeplan',
name='stripe_plan_name',
field=models.CharField(default='', max_length=512, null=True),
),
]

View file

@ -103,6 +103,7 @@ class StripePlan(models.Model):
A model to store Data Center Light's created Stripe plans A model to store Data Center Light's created Stripe plans
""" """
stripe_plan_id = models.CharField(max_length=256, null=True) stripe_plan_id = models.CharField(max_length=256, null=True)
stripe_plan_name = models.CharField(max_length=512, default="", null=True)
@classmethod @classmethod
def create(cls, stripe_plan_id): def create(cls, stripe_plan_id):