Remove useless function
This commit is contained in:
parent
178c1a118f
commit
72739cf5aa
1 changed files with 1 additions and 6 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue