diff --git a/datacenterlight/migrations/0029_auto_20190420_1022.py b/datacenterlight/migrations/0029_auto_20190420_1022.py new file mode 100644 index 00000000..05a3f27e --- /dev/null +++ b/datacenterlight/migrations/0029_auto_20190420_1022.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2019-04-20 10:22 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('datacenterlight', '0028_stripeplan_stripe_plan_name'), + ] + + operations = [ + migrations.AddField( + model_name='stripeplan', + name='amount', + field=models.PositiveIntegerField(default=0), + ), + migrations.AddField( + model_name='stripeplan', + name='interval', + field=models.CharField(default='', max_length=128, null=True), + ), + ] diff --git a/datacenterlight/models.py b/datacenterlight/models.py index 5b1ebb79..6410254b 100644 --- a/datacenterlight/models.py +++ b/datacenterlight/models.py @@ -104,6 +104,8 @@ class StripePlan(models.Model): """ stripe_plan_id = models.CharField(max_length=256, null=True) stripe_plan_name = models.CharField(max_length=512, default="", null=True) + amount = models.PositiveIntegerField(default=0) + interval = models.CharField(max_length=128, default="", null=True) @classmethod def create(cls, stripe_plan_id):