Unfreeze every account
This commit is contained in:
parent
99809209e0
commit
4136cb6868
1 changed files with 17 additions and 0 deletions
17
kfet/migrations/0076_unfreeze_accounts.py
Normal file
17
kfet/migrations/0076_unfreeze_accounts.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 2.2.17 on 2021-02-23 22:51
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def unfreeze_accounts(apps, schema_editor):
|
||||
Account = apps.get_model("kfet", "Account")
|
||||
Account.objects.all().update(is_frozen=False)
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("kfet", "0075_remove_accountnegative_balance_offset"),
|
||||
]
|
||||
|
||||
operations = [migrations.RunPython(unfreeze_accounts, migrations.RunPython.noop)]
|
Loading…
Reference in a new issue