Update datacenterlight StripePlan further

- Add field amount to stripeplan
    - Add field interval to stripeplan
This commit is contained in:
PCoder 2019-04-20 12:22:49 +02:00
parent 4be098d07a
commit c8e35e63f0
2 changed files with 27 additions and 0 deletions

View File

@ -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),
),
]

View File

@ -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):