~linuxgoose/bocpress

ref: 42c43cf231328d4ebcb06e2cd0c1276e197e146a bocpress/main/migrations/0017_post_published_at.py -rw-r--r-- 593 bytes
42c43cf2Jordan Robinson update API docs 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Generated by Django 3.0.7 on 2020-06-07 20:48

import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("main", "0016_auto_20200607_0024"),
    ]

    operations = [
        migrations.AddField(
            model_name="post",
            name="published_at",
            field=models.DateTimeField(
                blank=True,
                default=django.utils.timezone.now,
                help_text="Leave blank to keep as draft/unpublished",
                null=True,
            ),
        ),
    ]