Add v2 snapshot schema validation and import_snapshots command
This commit is contained in:
@ -8,6 +8,8 @@ class ImportFileInline(admin.TabularInline):
|
||||
extra = 0
|
||||
readonly_fields = (
|
||||
"relative_path",
|
||||
"source_name",
|
||||
"snapshot_date",
|
||||
"status",
|
||||
"checksum",
|
||||
"file_size_bytes",
|
||||
@ -61,6 +63,8 @@ class ImportFileAdmin(admin.ModelAdmin):
|
||||
"id",
|
||||
"import_run",
|
||||
"relative_path",
|
||||
"source_name",
|
||||
"snapshot_date",
|
||||
"status",
|
||||
"rows_total",
|
||||
"rows_upserted",
|
||||
@ -68,10 +72,12 @@ class ImportFileAdmin(admin.ModelAdmin):
|
||||
"processed_at",
|
||||
)
|
||||
list_filter = ("status",)
|
||||
search_fields = ("relative_path", "checksum", "error_message")
|
||||
search_fields = ("relative_path", "source_name", "checksum", "error_message")
|
||||
readonly_fields = (
|
||||
"import_run",
|
||||
"relative_path",
|
||||
"source_name",
|
||||
"snapshot_date",
|
||||
"status",
|
||||
"checksum",
|
||||
"file_size_bytes",
|
||||
|
||||
Reference in New Issue
Block a user