Minor css fixes.
[wolnelektury.git] / src / club / migrations / 0002_auto_20190416_1024.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.11.20 on 2019-04-16 08:24
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6 import django.db.models.deletion
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         ('club', '0001_initial'),
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='PayUCardToken',
18             fields=[
19                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20                 ('disposable_token', models.CharField(max_length=255, unique=True)),
21                 ('reusable_token', models.CharField(blank=True, max_length=255, null=True, unique=True)),
22                 ('created_at', models.DateTimeField(auto_now_add=True)),
23             ],
24             options={
25                 'abstract': False,
26             },
27         ),
28         migrations.CreateModel(
29             name='PayUNotification',
30             fields=[
31                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
32                 ('body', models.TextField()),
33                 ('received_at', models.DateTimeField(auto_now_add=True)),
34             ],
35             options={
36                 'abstract': False,
37             },
38         ),
39         migrations.CreateModel(
40             name='PayUOrder',
41             fields=[
42                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
43                 ('pos_id', models.CharField(max_length=255)),
44                 ('customer_ip', models.GenericIPAddressField()),
45                 ('amount', models.PositiveIntegerField()),
46                 ('order_id', models.CharField(blank=True, max_length=255)),
47                 ('status', models.CharField(blank=True, choices=[('PENDING', 'Pending'), ('WAITING_FOR_CONFIRMATION', 'Waiting for confirmation'), ('COMPLETED', 'Completed'), ('CANCELED', 'Canceled'), ('REJECTED', 'Rejected')], max_length=128)),
48             ],
49             options={
50                 'abstract': False,
51             },
52         ),
53         migrations.RemoveField(
54             model_name='payment',
55             name='schedule',
56         ),
57         migrations.AddField(
58             model_name='membership',
59             name='honorary',
60             field=models.BooleanField(default=False),
61         ),
62         migrations.AddField(
63             model_name='plan',
64             name='active',
65             field=models.BooleanField(default=True, verbose_name='active'),
66         ),
67         migrations.AlterField(
68             model_name='schedule',
69             name='method',
70             field=models.CharField(choices=[('payu-re', 'PayU Recurring'), ('paypal-re', 'PayPal Recurring')], max_length=255, verbose_name='method'),
71         ),
72         migrations.DeleteModel(
73             name='Payment',
74         ),
75         migrations.AddField(
76             model_name='payuorder',
77             name='schedule',
78             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='club.Schedule'),
79         ),
80         migrations.AddField(
81             model_name='payunotification',
82             name='order',
83             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='club.PayUOrder'),
84         ),
85         migrations.AddField(
86             model_name='payucardtoken',
87             name='schedule',
88             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='club.Schedule'),
89         ),
90     ]