forked from erp-dev/erp
feat: task for auto upload plate_image to tencent each day 03:00
This commit is contained in:
@@ -199,7 +199,7 @@ class PrintingOrderAdmin(admin.ModelAdmin):
|
||||
'craft',
|
||||
'description',
|
||||
)
|
||||
inlines = [PrintingJobInline]
|
||||
|
||||
|
||||
def save_formset(self, request, form, formset, change):
|
||||
"""保存 formset 后,为新创建的 PrintingJob 创建 BusinessObject"""
|
||||
@@ -468,3 +468,11 @@ class PrintingJobBatchAdvanceRecordAdmin(admin.ModelAdmin):
|
||||
@admin.display(description='涉及任务数')
|
||||
def jobs_count(self, obj: models.PrintingJobBatchAdvanceRecord) -> int:
|
||||
return obj.printing_jobs.count()
|
||||
|
||||
|
||||
@admin.register(models.PlateOrderTiiaUploadFailure)
|
||||
class PlateOrderTiiaUploadFailureAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'run_date', 'plate_order_id', 'attempts', 'last_attempt_at', 'created_at')
|
||||
list_filter = ('run_date', 'created_at')
|
||||
search_fields = ('plate_order_id', 'error')
|
||||
readonly_fields = ('created_at', 'updated_at')
|
||||
|
||||
Reference in New Issue
Block a user