Files
edx-platform/cms/djangoapps/import_from_modulestore/admin.py
Ivan Niedielnitsev 505b4f466c feat: Models for import_from_modulestore (#36515)
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.
2025-04-17 19:03:46 +00:00

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)