@@ -0,0 +1,1413 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0Aimport ielex.lexicon.models as models%0A%0A%0Adef forwards_func(apps, schema_editor):%0A    '''%0A    Quickly written code for #225.%0A    '''%0A    Lexeme = models.Lexeme%0A    print(%22%5Cn1: + lex. excl - Not swh%22)%0A    for l in Lexeme.objects.filter(not_swadesh_term=False).all():%0A        if l.is_excluded_lexeme:%0A            print(l.id)%0A    print(%222: + lex .loan - Not swh%22)%0A    for l in Lexeme.objects.filter(not_swadesh_term=False).all():%0A        if l.is_loan_lexeme:%0A            print(l.id)%0A    print(%223: + lex. loan%22)%0A    for l in Lexeme.objects.all():%0A        if l.is_loan_lexeme:%0A            print(l.id)%0A    print(%224: 2 %3E= cognate sets - Not swh%22)%0A    for l in Lexeme.objects.filter(not_swadesh_term=False).all():%0A        if l.cognatejudgement_set.count() %3E= 2:%0A            print(l.id)%0A    print(%225: + cog. excl.%22)%0A    for l in Lexeme.objects.all():%0A        if l.is_excluded_cognate:%0A            print(l.id)%0A    print(%226: + cog. loan%22)%0A    for l in Lexeme.objects.all():%0A        if l.is_loan_cognate:%0A            print(l.id)%0A    print(1/0)%0A%0A%0Adef reverse_func(apps, schema_editor):%0A    print('Nothing to do for reverse_func of 0085_foo')%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B('lexicon', '0084_auto_20160713_1522')%5D%0A%0A    operations = %5B%0A        migrations.RunPython(forwards_func, reverse_func),%0A    %5D%0A

Add ielex/lexicon/migrations/0085_issue_225.py