Remove useless function

This commit is contained in:
Martin Pépin 2016-06-07 00:14:12 +02:00
parent 178c1a118f
commit 72739cf5aa

View file

@ -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',