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
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-01-19 12:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('invoices', '0010_payment_refector'),
('confreg', '0041_notifications'),
]
operations = [
migrations.AddField(
model_name='conference',
name='paymentmethods',
field=models.ManyToManyField(to='invoices.InvoicePaymentMethod', verbose_name='Invoice payment options', blank=True),
),
migrations.RunSQL("""
INSERT INTO confreg_conference_paymentmethods (conference_id, invoicepaymentmethod_id)
SELECT c.id, m.id
FROM confreg_conference c
CROSS JOIN invoices_invoicepaymentmethod m
WHERE m.active AND m.auto"""),
]
|