Update datacenterlight StripePlan further
- Add field amount to stripeplan - Add field interval to stripeplan
This commit is contained in:
parent
4be098d07a
commit
c8e35e63f0
2 changed files with 27 additions and 0 deletions
25
datacenterlight/migrations/0029_auto_20190420_1022.py
Normal file
25
datacenterlight/migrations/0029_auto_20190420_1022.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -104,6 +104,8 @@ class StripePlan(models.Model):
|
||||||
"""
|
"""
|
||||||
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)
|
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
|
@classmethod
|
||||||
def create(cls, stripe_plan_id):
|
def create(cls, stripe_plan_id):
|
||||||
|
|
Loading…
Reference in a new issue