From 107fa6b902920fb4e11092704f6b1c567735260b Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Sat, 3 Mar 2018 00:17:42 +0100 Subject: [PATCH] Devrait fixer le bug sur cotisations/migrations/0026_auto_20171028_0126.py --- cotisations/migrations/0026_auto_20171028_0126.py | 2 +- cotisations/models.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cotisations/migrations/0026_auto_20171028_0126.py b/cotisations/migrations/0026_auto_20171028_0126.py index 436e0574..df44bb89 100644 --- a/cotisations/migrations/0026_auto_20171028_0126.py +++ b/cotisations/migrations/0026_auto_20171028_0126.py @@ -59,7 +59,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='cotisation', name='type_cotisation', - field=models.CharField(choices=[('Connexion', 'Connexion'), ('Adhesion', 'Adhesion'), ('All', 'All')], max_length=255), + field=models.CharField(choices=[('Connexion', 'Connexion'), ('Adhesion', 'Adhesion'), ('All', 'All')], max_length=255, default='All'), ), migrations.AddField( model_name='vente', diff --git a/cotisations/models.py b/cotisations/models.py index 07c3b8fa..11df1712 100644 --- a/cotisations/models.py +++ b/cotisations/models.py @@ -534,6 +534,7 @@ class Cotisation(models.Model): type_cotisation = models.CharField( choices=COTISATION_TYPE, max_length=255, + default='All', ) date_start = models.DateTimeField() date_end = models.DateTimeField()