0002_auto_20160824_2152.py 3.39 KB
Newer Older
1
2
3
4
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
5
import django.db.models.deletion
6
7
8
9
10


class Migration(migrations.Migration):

    dependencies = [
Sli's avatar
Sli committed
11
12
13
        ("club", "0001_initial"),
        ("accounting", "0001_initial"),
        ("core", "0001_initial"),
14
15
16
17
    ]

    operations = [
        migrations.AddField(
Sli's avatar
Sli committed
18
19
20
21
22
23
24
25
            model_name="operation",
            name="invoice",
            field=models.ForeignKey(
                null=True,
                related_name="operations",
                verbose_name="invoice",
                to="core.SithFile",
                blank=True,
26
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
27
            ),
28
29
        ),
        migrations.AddField(
Sli's avatar
Sli committed
30
31
32
33
34
35
            model_name="operation",
            name="journal",
            field=models.ForeignKey(
                verbose_name="journal",
                to="accounting.GeneralJournal",
                related_name="operations",
36
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
37
            ),
38
39
        ),
        migrations.AddField(
Sli's avatar
Sli committed
40
41
42
            model_name="operation",
            name="linked_operation",
            field=models.OneToOneField(
43
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
44
45
46
47
48
49
50
                blank=True,
                to="accounting.Operation",
                null=True,
                related_name="operation_linked_to",
                verbose_name="linked operation",
                default=None,
            ),
51
52
        ),
        migrations.AddField(
Sli's avatar
Sli committed
53
54
55
56
57
58
59
60
            model_name="operation",
            name="simpleaccounting_type",
            field=models.ForeignKey(
                null=True,
                related_name="operations",
                verbose_name="simple type",
                to="accounting.SimplifiedAccountingType",
                blank=True,
61
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
62
            ),
63
64
        ),
        migrations.AddField(
Sli's avatar
Sli committed
65
66
67
68
69
70
            model_name="generaljournal",
            name="club_account",
            field=models.ForeignKey(
                verbose_name="club account",
                to="accounting.ClubAccount",
                related_name="journals",
71
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
72
            ),
73
74
        ),
        migrations.AddField(
Sli's avatar
Sli committed
75
76
77
78
79
80
            model_name="clubaccount",
            name="bank_account",
            field=models.ForeignKey(
                verbose_name="bank account",
                to="accounting.BankAccount",
                related_name="club_accounts",
81
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
82
            ),
83
84
        ),
        migrations.AddField(
Sli's avatar
Sli committed
85
86
87
            model_name="clubaccount",
            name="club",
            field=models.ForeignKey(
88
89
90
91
                verbose_name="club",
                to="club.Club",
                related_name="club_account",
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
92
            ),
93
94
        ),
        migrations.AddField(
Sli's avatar
Sli committed
95
96
97
            model_name="bankaccount",
            name="club",
            field=models.ForeignKey(
98
99
100
101
                verbose_name="club",
                to="club.Club",
                related_name="bank_accounts",
                on_delete=django.db.models.deletion.CASCADE,
Sli's avatar
Sli committed
102
            ),
103
104
        ),
        migrations.AlterUniqueTogether(
Sli's avatar
Sli committed
105
            name="operation", unique_together=set([("number", "journal")])
106
107
        ),
    ]