extend maximum length of page titles to 150 characters (#15408)

This commit is contained in:
Thomas NOËL 2017-03-13 16:43:39 +01:00
parent 4c8084e1a1
commit 97aee4d4f3
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0022_auto_20170214_2006'),
]
operations = [
migrations.AlterField(
model_name='page',
name='title',
field=models.CharField(max_length=150, verbose_name='Title'),
),
]

View File

@ -79,7 +79,7 @@ class PageManager(models.Manager):
class Page(models.Model):
objects = PageManager()
title = models.CharField(_('Title'), max_length=50)
title = models.CharField(_('Title'), max_length=150)
slug = models.SlugField(_('Slug'))
template_name = models.CharField(_('Template'), max_length=50)
parent = models.ForeignKey('self', null=True, blank=True)