mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-16 19:21:10 +00:00
Update Page model to make first_published_at editable
This commit is contained in:
parent
bdf00874bd
commit
65d74a567f
2 changed files with 21 additions and 1 deletions
|
|
@ -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'),
|
||||
),
|
||||
]
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue