refactor!: use String field instead of Dict field to store top_level_downstream_parent_key (#37448)
* refactor!: use String field instead of Dict field to store top_level_downstream_parent_key Since this is a new field no production instance should have this field yet. Developers need to delete their old courses as this change will raise error in all course pages. * chore: add `top_level_parent` field in ComponentLink and ContainerLink admin * refactor: use ":" as separator * refactor: block key parsing and tests
This commit is contained in:
@@ -100,6 +100,7 @@ class ComponentLinkAdmin(admin.ModelAdmin):
|
||||
"upstream_context_key",
|
||||
"downstream_usage_key",
|
||||
"downstream_context_key",
|
||||
"top_level_parent",
|
||||
"version_synced",
|
||||
"version_declined",
|
||||
"created",
|
||||
@@ -139,6 +140,7 @@ class ContainerLinkAdmin(admin.ModelAdmin):
|
||||
"upstream_context_key",
|
||||
"downstream_usage_key",
|
||||
"downstream_context_key",
|
||||
"top_level_parent",
|
||||
"version_synced",
|
||||
"version_declined",
|
||||
"created",
|
||||
|
||||
Reference in New Issue
Block a user