polishing map fixes
[wolnelektury.git] / src / club / migrations / 0011_fix_notification_body.py
1 # Generated by Django 2.2.5 on 2019-09-30 13:02
2
3 from django.db import migrations
4
5
6 def fix_notification_body(apps, schema_editor):
7     PayUNotification = apps.get_model('club', 'PayUNotification')
8     for n in PayUNotification.objects.filter(body__startswith='b'):
9         n.body = n.body[2:-1]
10         n.save()
11
12
13 class Migration(migrations.Migration):
14
15     dependencies = [
16         ('club', '0010_auto_20190529_0946'),
17     ]
18
19     operations = [
20         migrations.RunPython(
21             fix_notification_body,
22             migrations.RunPython.noop,
23             elidable=True),
24     ]