A new application has been created, described in this ADR: https://github.com/openedx/edx-platform/pull/36545 have been created, as well as related models for mapping original content and new content created during the import process. Python and Django APIs, as well as a Django admin interface, will soon follow.
36 lines
734 B
Python
36 lines
734 B
Python
"""
|
|
This module contains the admin configuration for the Import model.
|
|
"""
|
|
from django.contrib import admin
|
|
|
|
from .models import Import, PublishableEntityImport, PublishableEntityMapping
|
|
|
|
|
|
class ImportAdmin(admin.ModelAdmin):
|
|
"""
|
|
Admin configuration for the Import model.
|
|
"""
|
|
|
|
list_display = (
|
|
'uuid',
|
|
'created',
|
|
'status',
|
|
'source_key',
|
|
'target_change',
|
|
)
|
|
list_filter = (
|
|
'status',
|
|
)
|
|
search_fields = (
|
|
'source_key',
|
|
'target_change',
|
|
)
|
|
|
|
raw_id_fields = ('user',)
|
|
readonly_fields = ('status',)
|
|
|
|
|
|
admin.site.register(Import, ImportAdmin)
|
|
admin.site.register(PublishableEntityImport)
|
|
admin.site.register(PublishableEntityMapping)
|