From 487ab6b9278b4fac4ab8b405b79e84c8d4673312 Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 22 Aug 2017 01:55:45 +0530 Subject: [PATCH] Changed the subscription plan id field size to 256 characters --- .../migrations/0008_auto_20170821_2024.py | 20 +++++++++++++++++++ datacenterlight/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 datacenterlight/migrations/0008_auto_20170821_2024.py diff --git a/datacenterlight/migrations/0008_auto_20170821_2024.py b/datacenterlight/migrations/0008_auto_20170821_2024.py new file mode 100644 index 00000000..5357a404 --- /dev/null +++ b/datacenterlight/migrations/0008_auto_20170821_2024.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2017-08-21 20:24 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('datacenterlight', '0007_stripeplan'), + ] + + operations = [ + migrations.AlterField( + model_name='stripeplan', + name='stripe_plan_id', + field=models.CharField(max_length=256, null=True), + ), + ] diff --git a/datacenterlight/models.py b/datacenterlight/models.py index d8237ed2..f7b50a01 100644 --- a/datacenterlight/models.py +++ b/datacenterlight/models.py @@ -65,7 +65,7 @@ class StripePlan(models.Model): """ A model to store Data Center Light's created Stripe plans """ - stripe_plan_id = models.CharField(max_length=100, null=True) + stripe_plan_id = models.CharField(max_length=256, null=True) @classmethod def create(cls, stripe_plan_id):