mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-17 21:41:01 +00:00
Added first_published_at field to Page
This commit is contained in:
parent
80cb6e16e7
commit
cdbae1f575
2 changed files with 21 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wagtailcore', '0010_change_page_owner_to_null_on_delete'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='page',
|
||||
name='first_published_at',
|
||||
field=models.DateTimeField(editable=False, null=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
|
|
@ -284,6 +284,7 @@ class Page(six.with_metaclass(PageBase, MP_Node, ClusterableModel, index.Indexed
|
|||
|
||||
locked = models.BooleanField(default=False, editable=False)
|
||||
|
||||
first_published_at = models.DateTimeField(null=True, editable=False)
|
||||
latest_revision_created_at = models.DateTimeField(null=True, editable=False)
|
||||
|
||||
search_fields = (
|
||||
|
|
|
|||
Loading…
Reference in a new issue