From 72739cf5aa1e1c5cba50b001fe90c059998e2f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 7 Jun 2016 00:14:12 +0200 Subject: [PATCH] Remove useless function --- bda/migrations/0002_add_tirage.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bda/migrations/0002_add_tirage.py b/bda/migrations/0002_add_tirage.py index 15865e5c..73d597ba 100644 --- a/bda/migrations/0002_add_tirage.py +++ b/bda/migrations/0002_add_tirage.py @@ -17,11 +17,6 @@ def forwards_func(apps, schema_editor): fermeture=timezone.now()), ]) -def reverse_func(apps, schema_editor): - Tirage = apps.get_model("bda", "Tirage") - db_alias = schema_editor.connection.alias - Tirage.objects.using(db_alias).delete() - class Migration(migrations.Migration): dependencies = [ @@ -40,7 +35,7 @@ class Migration(migrations.Migration): ('active', models.BooleanField(default=True, verbose_name=b'Tirage actif')), ], ), - migrations.RunPython(forwards_func, reverse_func), + migrations.RunPython(forwards_func, migrations.RunPython.noop), migrations.AlterField( model_name='participant', name='user',