~linuxgoose/bocpress

ref: 7e5fd8e07d826980527cd444b03fa76ab8e6bcfd bocpress/main/migrations/0035_auto_20200812_2020.py -rw-r--r-- 1.4 KiB
7e5fd8e0Jordan Robinson fix landing page link 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Generated by Django 3.0.8 on 2020-08-12 20:20

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("main", "0034_analytic"),
    ]

    operations = [
        migrations.AlterModelOptions(
            name="analytic",
            options={"ordering": ["-created_at"]},
        ),
        migrations.AddField(
            model_name="user",
            name="comments_on",
            field=models.BooleanField(
                default=False, help_text="Enable/disable comments for your blog"
            ),
        ),
        migrations.CreateModel(
            name="Comment",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("body", models.TextField()),
                (
                    "post",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to="main.Post"
                    ),
                ),
            ],
            options={"ordering": ["-created_at"]},
        ),
    ]