@@ -0,0 +1,782 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals, print_function%0Afrom django.db import migrations%0A%0A%0Adef forwards_func(apps, schema_editor):%0A    Lexeme = apps.get_model(%22lexicon%22, %22Lexeme%22)%0A    replaceMap = %7B%0A        '%CA%B9': '%E2%80%B2',%0A        '%CA%BA': '%E2%80%B3',%0A        '%CE%B4': '%C3%B0',%0A        '%CE%B3': '%C9%A3'%7D%0A    for lexeme in Lexeme.objects.all():%0A        if len(set(replaceMap.keys()) & set(lexeme.romanised)):%0A            for k, v in replaceMap.items():%0A                lexeme.romanised = lexeme.romanised.replace(k, v)%0A            lexeme.save()%0A%0A%0Adef reverse_func(apps, schema_editor):%0A    pass%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B('lexicon', '0142_remove_empty_cognate_classes')%5D%0A%0A    operations = %5B%0A        migrations.RunPython(forwards_func, reverse_func),%0A    %5D%0A

Add 0143_clean_lexeme_romanised.py