0023_auto_20160311_1434.py
572 Bytes
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
def update_posname(apps, schema_editor):
POSName = apps.get_model('dictionary', 'POSName')
for pos_name in POSName.objects.filter(extended='czasownik niewłaściwy'):
pos_name.extended = 'predykatyw'
pos_name.abbr = 'pred.'
pos_name.save()
class Migration(migrations.Migration):
dependencies = [
('dictionary', '0022_auto_20160226_1358'),
]
operations = [
migrations.RunPython(update_posname),
]