summaryrefslogtreecommitdiff
path: root/app/trading/migrations/0019_auto_20220103_1458.py
blob: d0d6529ec80c57006cb510f841792474794db6e4 (plain)
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
29
30
31
32
# Generated by Django 3.2.7 on 2022-01-03 14:58

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


class Migration(migrations.Migration):

    dependencies = [
        ('trading', '0018_luxoptionpurchase_pl'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='luxoptionpurchase',
            options={'get_latest_by': 'open_date', 'ordering': ('-open_date',)},
        ),
        migrations.RemoveField(
            model_name='luxoptionpurchase',
            name='contracts',
        ),
        migrations.AddField(
            model_name='luxoptioncontact',
            name='options_purchase',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='trading.luxoptionpurchase'),
        ),
        migrations.AlterField(
            model_name='luxoptioncontact',
            name='call_put',
            field=models.IntegerField(choices=[(0, 'C'), (1, 'P')], default=0),
        ),
    ]