aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/apps/api/migrations/0018_messagedeletioncontext.py
blob: 10428ceb5eb42b907498f2c183a3d757db904979 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Generated by Django 2.1.1 on 2018-11-18 20:12

import pysite.apps.api.models
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('api', '0017_auto_20181029_1921'),
    ]

    operations = [
        migrations.CreateModel(
            name='MessageDeletionContext',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('creation', models.DateTimeField(help_text='When this deletion took place.')),
                ('actor', models.ForeignKey(help_text='The original actor causing this deletion. Could be the author of a manual clean command invocation, the bot when executing automatic actions, or nothing to indicate that the bulk deletion was not issued by us.', null=True, on_delete=django.db.models.deletion.CASCADE, to='api.User')),
            ],
            bases=(pysite.apps.api.models.ModelReprMixin, models.Model),
        ),
    ]