forked from erp-dev/erp
feat: added mdy stagging upload to tiia, and change outgoing_date to datetime type
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
from django.contrib import admin
|
||||
from django.contrib.admin import action
|
||||
from api_v1.models import UploadedFile, DataSync, MDYPlateOrderStaging, ApiAuditLog
|
||||
from api_v1.models import (
|
||||
UploadedFile,
|
||||
DataSync,
|
||||
MDYPlateOrderStaging,
|
||||
MDYPlateOrderStagingTiiaUploadFailure,
|
||||
ApiAuditLog,
|
||||
)
|
||||
from .tasks import backup_database
|
||||
|
||||
|
||||
@@ -43,6 +49,24 @@ class MDYPlateOrderStagingAdmin(admin.ModelAdmin):
|
||||
ordering = ['-created_at']
|
||||
|
||||
|
||||
@admin.register(MDYPlateOrderStagingTiiaUploadFailure)
|
||||
class MDYPlateOrderStagingTiiaUploadFailureAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
'id',
|
||||
'run_date',
|
||||
'mdy_rowid',
|
||||
'staging_id',
|
||||
'attempts',
|
||||
'last_attempt_at',
|
||||
'created_at',
|
||||
]
|
||||
list_filter = ['run_date', 'created_at']
|
||||
search_fields = ['mdy_rowid', 'error']
|
||||
readonly_fields = ['created_at', 'updated_at']
|
||||
date_hierarchy = 'created_at'
|
||||
ordering = ['-created_at']
|
||||
|
||||
|
||||
@admin.register(ApiAuditLog)
|
||||
class ApiAuditLogAdmin(admin.ModelAdmin):
|
||||
"""API审计日志管理"""
|
||||
|
||||
Reference in New Issue
Block a user