Commit c5f96fee authored by Gabriel Detraz's avatar Gabriel Detraz

Fix : autorise blank pour message mail adhésion

parent ff9f6e5c
# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-10-08 11:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('preferences', '0063_mandate'),
]
operations = [
migrations.AlterField(
model_name='mailmessageoption',
name='welcome_mail_en',
field=models.TextField(blank=True, default='', help_text='Welcome email in English'),
),
migrations.AlterField(
model_name='mailmessageoption',
name='welcome_mail_fr',
field=models.TextField(blank=True, default='', help_text='Welcome email in French'),
),
]
......@@ -616,8 +616,16 @@ def homeoption_post_save(**kwargs):
class MailMessageOption(AclMixin, models.Model):
"""Reglages, mail de bienvenue et autre"""
welcome_mail_fr = models.TextField(default="", help_text=_("Welcome email in French"))
welcome_mail_en = models.TextField(default="", help_text=_("Welcome email in English"))
welcome_mail_fr = models.TextField(
default="",
blank=True,
help_text=_("Welcome email in French")
)
welcome_mail_en = models.TextField(
default="",
blank=True,
help_text=_("Welcome email in English")
)
class Meta:
permissions = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment