From 34fc334987ba608edb4563de1d9fd8d6ee504207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Fri, 10 Jun 2016 00:49:04 +0200 Subject: [PATCH 1/2] Ajoute le backend 'console' pour les mails en dev. --- cof/settings_dev.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cof/settings_dev.py b/cof/settings_dev.py index 401127ef..75f67646 100644 --- a/cof/settings_dev.py +++ b/cof/settings_dev.py @@ -15,6 +15,7 @@ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ From 7f18d93c5f37880ae43c76b95b09f6fdb33838d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Fri, 10 Jun 2016 01:06:43 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Effectue=20des=20migrations=20oubli=C3=A9es?= =?UTF-8?q?=20dans=20!17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le champ `price` des spectacles est devenu obligatoire. Le champ `active` des tirages prends désormais la valeur False par défaut. --- .../0003_update_tirage_and_spectacle.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bda/migrations/0003_update_tirage_and_spectacle.py diff --git a/bda/migrations/0003_update_tirage_and_spectacle.py b/bda/migrations/0003_update_tirage_and_spectacle.py new file mode 100644 index 00000000..f5ca671a --- /dev/null +++ b/bda/migrations/0003_update_tirage_and_spectacle.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('bda', '0002_add_tirage'), + ] + + operations = [ + migrations.AlterField( + model_name='spectacle', + name='price', + field=models.FloatField(verbose_name=b"Prix d'une place"), + ), + migrations.AlterField( + model_name='tirage', + name='active', + field=models.BooleanField(default=False, verbose_name=b'Tirage actif'), + ), + ]