Skip to content

Commit

Permalink
OM-64 fixed municipality type (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
malinowskikam authored Nov 6, 2023
1 parent f18a902 commit 8e5c89b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions msystems/migrations/0005_fix_ward.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from django.db import migrations

on_reverse_migration = migrations.RunPython.noop


def on_migration(apps, schema_editor):
location_model = apps.get_model('location', 'Location')
location_model.objects.filter(code='MM01').update(type='W')


class Migration(migrations.Migration):
dependencies = [
('msystems', '0004_add_modal_right'),
]

operations = [
migrations.RunPython(on_migration, on_reverse_migration),
]

0 comments on commit 8e5c89b

Please sign in to comment.