File: 0005_customsoftdelete.py

package info (click to toggle)
python-django-pgtrigger 4.15.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 956 kB
  • sloc: python: 4,412; makefile: 114; sh: 8; sql: 2
file content (28 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (3)
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
# Generated by Django 3.0.7 on 2020-10-13 11:26

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("tests", "0004_fsm"),
    ]

    operations = [
        migrations.CreateModel(
            name="CustomSoftDelete",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("custom_active", models.BooleanField(default=True)),
                ("other_field", models.TextField()),
            ],
        ),
    ]