From 4be098d07a057cea96de9469569a6df1923ab9e5 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 20 Apr 2019 11:53:47 +0200 Subject: [PATCH] Add stripe_plan_name field to datacenterlight's StripePlan model --- .../0028_stripeplan_stripe_plan_name.py | 20 +++++++++++++++++++ datacenterlight/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 datacenterlight/migrations/0028_stripeplan_stripe_plan_name.py diff --git a/datacenterlight/migrations/0028_stripeplan_stripe_plan_name.py b/datacenterlight/migrations/0028_stripeplan_stripe_plan_name.py new file mode 100644 index 00000000..1592e2e5 --- /dev/null +++ b/datacenterlight/migrations/0028_stripeplan_stripe_plan_name.py @@ -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), + ), + ] diff --git a/datacenterlight/models.py b/datacenterlight/models.py index 729bbdf9..5b1ebb79 100644 --- a/datacenterlight/models.py +++ b/datacenterlight/models.py @@ -103,6 +103,7 @@ class StripePlan(models.Model): A model to store Data Center Light's created Stripe plans """ stripe_plan_id = models.CharField(max_length=256, null=True) + stripe_plan_name = models.CharField(max_length=512, default="", null=True) @classmethod def create(cls, stripe_plan_id):