Layout fixes, cover update for files.
[wolnelektury.git] / src / funding / migrations / 0008_auto_20221003_1235.py
1 # Generated by Django 2.2.28 on 2022-10-03 10:35
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         ('funding', '0007_auto_20221003_1230'),
11     ]
12
13     operations = [
14         migrations.AddField(
15             model_name='funding',
16             name='created_at',
17             field=models.DateTimeField(auto_now_add=True, null=True),
18         ),
19         migrations.AddField(
20             model_name='funding',
21             name='customer_ip',
22             field=models.GenericIPAddressField(null=True, verbose_name='customer IP'),
23         ),
24         migrations.AddField(
25             model_name='funding',
26             name='order_id',
27             field=models.CharField(blank=True, max_length=255, verbose_name='order ID'),
28         ),
29         migrations.AddField(
30             model_name='funding',
31             name='pos_id',
32             field=models.CharField(default='', max_length=255, verbose_name='POS id'),
33             preserve_default=False,
34         ),
35         migrations.AddField(
36             model_name='funding',
37             name='status',
38             field=models.CharField(blank=True, choices=[('PENDING', 'Pending'), ('WAITING_FOR_CONFIRMATION', 'Waiting for confirmation'), ('COMPLETED', 'Completed'), ('CANCELED', 'Canceled'), ('REJECTED', 'Rejected'), ('ERR-INVALID_TOKEN', 'Invalid token')], max_length=128),
39         ),
40         migrations.AlterField(
41             model_name='funding',
42             name='completed_at',
43             field=models.DateTimeField(blank=True, null=True),
44         ),
45         migrations.CreateModel(
46             name='PayUNotification',
47             fields=[
48                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
49                 ('body', models.TextField(verbose_name='body')),
50                 ('received_at', models.DateTimeField(auto_now_add=True, verbose_name='received_at')),
51                 ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notification_set', to='funding.Funding')),
52             ],
53             options={
54                 'verbose_name': 'PayU notification',
55                 'verbose_name_plural': 'PayU notifications',
56                 'abstract': False,
57             },
58         ),
59     ]