mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Update accounting to have a target
This commit is contained in:
40
accounting/migrations/0013_auto_20160807_1923.py
Normal file
40
accounting/migrations/0013_auto_20160807_1923.py
Normal file
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('accounting', '0012_auto_20160720_1847'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Company',
|
||||
fields=[
|
||||
('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=60, verbose_name='name')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'company',
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='operation',
|
||||
name='target_id',
|
||||
field=models.IntegerField(blank=True, null=True, verbose_name='target id'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='operation',
|
||||
name='target_label',
|
||||
field=models.CharField(max_length=32, blank=True, default='', verbose_name='target label'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='operation',
|
||||
name='target_type',
|
||||
field=models.CharField(max_length=10, default='OTHER', choices=[('USER', 'User'), ('CLUB', 'Club'), ('ACCOUNT', 'Account'), ('COMPANY', 'Company'), ('OTHER', 'Other')], verbose_name='target type'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
24
accounting/migrations/0015_auto_20160807_1959.py
Normal file
24
accounting/migrations/0015_auto_20160807_1959.py
Normal file
@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('accounting', '0014_auto_20160807_1954'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='operation',
|
||||
name='accounting_type',
|
||||
field=models.ForeignKey(related_name='operations', verbose_name='accounting type', to='accounting.AccountingType'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='operation',
|
||||
name='invoice',
|
||||
field=models.FileField(upload_to='invoices', verbose_name='invoice', null=True, blank=True),
|
||||
),
|
||||
]
|
18
accounting/migrations/0016_auto_20160807_2000.py
Normal file
18
accounting/migrations/0016_auto_20160807_2000.py
Normal file
@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('accounting', '0015_auto_20160807_1959'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='accountingtype',
|
||||
options={'verbose_name': 'accounting type'},
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user