fix: Migrate LanguagesTaxnomy._taxonomy_class to reflect refactoring#489
Merged
kdmccormick merged 1 commit intomainfrom Feb 20, 2026
Merged
fix: Migrate LanguagesTaxnomy._taxonomy_class to reflect refactoring#489kdmccormick merged 1 commit intomainfrom
LanguagesTaxnomy._taxonomy_class to reflect refactoring#489kdmccormick merged 1 commit intomainfrom
Conversation
Fixes an error along the lines of:
Unable to import taxonomy_class for -1:
openedx_tagging.core.tagging.models.system_defined.LanguageTaxonomy
This was missed in: #470
We had updated migration 0012 to initialize LanguagesTaxonomy with the
post-refactoring _taxonomy_class, but didn't add a new data migration
to fix the classpath. Migration 0019 now fixes that.
This commit also reverts our change to 0012 for the sake of historical
continuity (but it doesn't really matter either way since 0019 will overwrite
the _taxonomy_class).
Co-Authored-By: Claude Code <noreply@anthropic.com>
930e3c3 to
cc84246
Compare
ormsbee
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes an error along the lines of:
Unable to import taxonomy_class for -1:
openedx_tagging.core.tagging.models.system_defined.LanguageTaxonomy
This was missed in: #470
We had updated migration 0012 to initialize LanguagesTaxonomy with the post-refactoring _taxonomy_class, but didn't add a new data migration to fix the classpath. Migration 0019 now fixes that.
This commit also reverts our change to 0012 for the sake of historical continuity (but it doesn't really matter either way since 0019 will overwrite the _taxonomy_class).
Bumps patch version.
openedx-platform companion PR:
Tested by looking at django admin before running the migration and confirming the class path is wrong, running the migration, and then checking to see that it's fixed.
Claude Code wrote the migration file. Only change I made was to remove
id=-1fromTaxonomy.objects.filter(...), which Claude had originally included alongside theOLD_CLASSandNEW_CLASSfilters. I'd like this migration to update any entry in the table whose_taxonomy_classpoints at the old LanguageTaxonomy class.