@@ -0,0 +1,640 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals, print_function%0A%0Afrom django.core.management import BaseCommand%0A%0Afrom ielex.lexicon.models import CognateClass%0A%0A%0Aclass Command(BaseCommand):%0A%0A    help = %22Compiles a list of cognate classes without lexemes.%22%0A%0A    def handle(self, *args, **options):%0A        emptyCCs = 0%0A        for cc in CognateClass.objects.order_by('id').all():%0A            if cc.lexeme_set.count() == 0:%0A                print(%22http://cobl.info/cognate/%25s/%22 %25 (cc.id))%0A                emptyCCs += 1%0A        print('Found empty cognate classes: %25s/%25s' %25%0A              (emptyCCs, CognateClass.objects.count()))%0A

Add findEmptyCognateClasses command