Skip to content

Commit fd76848

Browse files
committed
fix(squash): display component_code in admin, not key
1 parent 3a446d5 commit fd76848

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/openedx_content/applets/components

src/openedx_content/applets/components/admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class ComponentAdmin(ReadOnlyModelAdmin):
3737
"""
3838
Django admin configuration for Component
3939
"""
40-
list_display = ("key", "uuid", "component_type", "created")
40+
list_display = ("component_code", "uuid", "component_type", "created")
4141
readonly_fields = [
4242
"learning_package",
4343
"uuid",
4444
"component_type",
45-
"key",
45+
"component_code",
4646
"created",
4747
]
4848
list_filter = ("component_type", "learning_package")
@@ -69,13 +69,13 @@ def get_queryset(self, request):
6969
)
7070

7171
fields = [
72-
"key",
72+
"component_code",
7373
"format_size",
7474
"rendered_data",
7575
]
7676
readonly_fields = [
7777
"media",
78-
"key",
78+
"component_code",
7979
"format_size",
8080
"rendered_data",
8181
]

0 commit comments

Comments
 (0)