diff --git a/src/morphodict/lexicon/migrations/0015_auto_20241128_2351.py b/src/morphodict/lexicon/migrations/0015_auto_20241128_2351.py index dd421f98f..1f93f4e94 100644 --- a/src/morphodict/lexicon/migrations/0015_auto_20241128_2351.py +++ b/src/morphodict/lexicon/migrations/0015_auto_20241128_2351.py @@ -12,7 +12,7 @@ def migrate_semantic_domains(apps, schema_editor): # For every wordform, collect the semantic domain information in the old # format and place it where it belongs. wordforms = Wordform.objects.all() - for wf in wordforms: + for wf in wordforms.iterator(): if wf.rw_indices: rapidwords = [x.strip() for x in wf.rw_indices.split(";")] else: diff --git a/src/morphodict/lexicon/migrations/0016_auto_20241202_1907.py b/src/morphodict/lexicon/migrations/0016_auto_20241202_1907.py index 446db0356..e36ec2b4b 100644 --- a/src/morphodict/lexicon/migrations/0016_auto_20241202_1907.py +++ b/src/morphodict/lexicon/migrations/0016_auto_20241202_1907.py @@ -13,7 +13,7 @@ def migrate_from_linguistinfo(apps, schema_editor): # For every wordform, collect the semantic domain information in the old # format and place it where it belongs. wordforms = Wordform.objects.all() - for wf in wordforms: + for wf in wordforms.iterator(): if not wf.linguist_info: continue if "rw_indices" in wf.linguist_info: