mirror of https://gitlab.federez.net/re2o/re2o
10 changed files with 217 additions and 29 deletions
@ -0,0 +1,38 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.10.7 on 2019-01-03 19:56 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
import re2o.mixins |
||||
|
|
||||
|
|
||||
|
def initialize_invoice_template(apps, schema_editor): |
||||
|
CotisationsOption = apps.get_model('preferences', 'CotisationsOption') |
||||
|
DocumentTemplate = apps.get_model('cotisations', 'DocumentTemplate') |
||||
|
CotisationsOption.objects.create( |
||||
|
invoice_template=DocumentTemplate.objects.first() |
||||
|
) |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('cotisations', '0039_documenttemplate'), |
||||
|
('preferences', '0056_4_radiusoption'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name='CotisationsOption', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
|
('invoice_template', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, related_name='invoice_template', to='cotisations.DocumentTemplate', verbose_name='Template for invoices')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name': 'cotisations options', |
||||
|
}, |
||||
|
bases=(re2o.mixins.AclMixin, models.Model), |
||||
|
), |
||||
|
migrations.RunPython(initialize_invoice_template), |
||||
|
] |
||||
@ -0,0 +1,22 @@ |
|||||
|
<p>Bonjour {{nom}} !</p> |
||||
|
|
||||
|
<p>Nous vous informons que votre cotisation auprès de {{asso_name}} a été acceptée. Vous voilà donc membre de l'association.</p> |
||||
|
|
||||
|
<p>Vous trouverez en pièce jointe un reçu.</p> |
||||
|
|
||||
|
<p>Pour nous faire part de toute remarque, suggestion ou problème vous pouvez nous envoyer un mail à {{asso_email}}.</p> |
||||
|
|
||||
|
<p>À bientôt,<br> |
||||
|
L'équipe de {{asso_name}}.</p> |
||||
|
|
||||
|
<p>---</p> |
||||
|
|
||||
|
<p>Your subscription to {{asso_name}} has just been accepted. You are now a full member of {{asso_name}}. |
||||
|
|
||||
|
<p>You will find with this email a subscription voucher.</p> |
||||
|
|
||||
|
<p>For any information, suggestion or problem, you can contact us via email at<br> |
||||
|
{{asso_email}}.</p> |
||||
|
|
||||
|
<p>Regards,<br> |
||||
|
The {{asso_name}} team.</p> |
||||
Loading…
Reference in new issue