From 586f4ad4386f41a864df2158116f320ae73bbb39 Mon Sep 17 00:00:00 2001 From: "ajurna@gmail.com" Date: Thu, 14 Apr 2016 13:36:02 +0100 Subject: [PATCH] page file name is not long enough. extended to 200. --- comic/migrations/0016_auto_20160414_1335.py | 19 +++++++++++++++++++ comic/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 comic/migrations/0016_auto_20160414_1335.py diff --git a/comic/migrations/0016_auto_20160414_1335.py b/comic/migrations/0016_auto_20160414_1335.py new file mode 100644 index 0000000..90d11f4 --- /dev/null +++ b/comic/migrations/0016_auto_20160414_1335.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-04-14 12:35 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('comic', '0015_auto_20160405_1126'), + ] + + operations = [ + migrations.AlterField( + model_name='comicpage', + name='page_file_name', + field=models.CharField(max_length=200), + ), + ] diff --git a/comic/models.py b/comic/models.py index 8f5b5c6..1c2fca8 100644 --- a/comic/models.py +++ b/comic/models.py @@ -311,7 +311,7 @@ def get_ordered_dir_list(folder): class ComicPage(models.Model): Comic = models.ForeignKey(ComicBook, on_delete=models.CASCADE) index = models.IntegerField() - page_file_name = models.CharField(max_length=100, unique=False) + page_file_name = models.CharField(max_length=200, unique=False) content_type = models.CharField(max_length=30)