Update Page model to make first_published_at editable

This commit is contained in:
Kees Hink 2017-03-24 10:24:35 +01:00 committed by Matt Westcott
parent bdf00874bd
commit 65d74a567f
2 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-24 09:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0037_set_page_owner_editable'),
]
operations = [
migrations.AlterField(
model_name='page',
name='first_published_at',
field=models.DateTimeField(blank=True, db_index=True, null=True, verbose_name='first published at'),
),
]

View file

@ -320,8 +320,8 @@ class Page(six.with_metaclass(PageBase, AbstractPage, index.Indexed, Clusterable
first_published_at = models.DateTimeField(
verbose_name=_('first published at'),
blank=True,
null=True,
editable=False,
db_index=True
)
last_published_at = models.DateTimeField(