Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Jul 25, 2023
1 parent b8afcc4 commit 4e8d82b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions api/task_processor/admin.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from django.contrib import admin

from task_processor.models import (
RecurringTask,
RecurringTaskRun,
Task,
TaskRun,
)
from task_processor.models import RecurringTask


@admin.register(RecurringTask)
class RecurringTaskAdmin(admin.ModelAdmin):
list_display = ("uuid", "task_identifier", "run_every", "last_run_status", "is_locked")
list_display = (
"uuid",
"task_identifier",
"run_every",
"last_run_status",
"is_locked",
)
readonly_fields = ("args", "kwargs")

def last_run_status(self, instance: RecurringTask) -> str:
Expand Down

0 comments on commit 4e8d82b

Please sign in to comment.