layout stuff
[wolnelektury.git] / src / club / migrations / 0043_monthlyamount_wide_singleamount_wide.py
1 # Generated by Django 4.0.8 on 2023-05-08 12:46
2
3 from django.db import migrations, models
4
5
6 def last_amount_wide(apps, schema_editor):
7     SingleAmount = apps.get_model('club', 'SingleAmount')
8     a = SingleAmount.objects.last()
9     a.wide = True
10     a.save()
11
12
13 class Migration(migrations.Migration):
14
15     dependencies = [
16         ('club', '0042_auto_20220826_1458'),
17     ]
18
19     operations = [
20         migrations.AddField(
21             model_name='monthlyamount',
22             name='wide',
23             field=models.BooleanField(default=False),
24         ),
25         migrations.AddField(
26             model_name='singleamount',
27             name='wide',
28             field=models.BooleanField(default=False),
29         ),
30         migrations.RunPython(
31             last_amount_wide,
32             migrations.RunPython.noop
33         )
34     ]