@@ -0,0 +1,767 @@
+# -*- 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        '%C2%A0': ' ',%0A        '%C7%9D': '%C9%99',%0A        '%CE%B5': '%C9%9B'%0A        %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', '0149_refill_romanisedsymbol')%5D%0A%0A    operations = %5B%0A        migrations.RunPython(forwards_func, reverse_func),%0A    %5D%0A

Add migration 0150_clean_lexeme_romanised_4