0004_auto_20161005_1505.py 1.58 KB
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

Sli's avatar
Sli committed
10
    dependencies = [("accounting", "0003_auto_20160824_2203")]
Skia's avatar
Skia committed
11
12
13

    operations = [
        migrations.CreateModel(
Sli's avatar
Sli committed
14
            name="Label",
Skia's avatar
Skia committed
15
            fields=[
Sli's avatar
Sli committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
                (
                    "id",
                    models.AutoField(
                        verbose_name="ID",
                        primary_key=True,
                        auto_created=True,
                        serialize=False,
                    ),
                ),
                ("name", models.CharField(max_length=64, verbose_name="label")),
                (
                    "club_account",
                    models.ForeignKey(
                        related_name="labels",
                        verbose_name="club account",
                        to="accounting.ClubAccount",
32
                        on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
33
34
                    ),
                ),
Skia's avatar
Skia committed
35
36
37
            ],
        ),
        migrations.AddField(
Sli's avatar
Sli committed
38
39
40
41
42
43
44
45
46
47
            model_name="operation",
            name="label",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="operations",
                null=True,
                blank=True,
                verbose_name="label",
                to="accounting.Label",
            ),
Skia's avatar
Skia committed
48
49
        ),
        migrations.AlterUniqueTogether(
Sli's avatar
Sli committed
50
            name="label", unique_together=set([("name", "club_account")])
Skia's avatar
Skia committed
51
52
        ),
    ]