commit 0f26b5a8e0
Author: jorgepastorr <jorge.pastor.rr@gmail.com>
Date: Sun Jul 9 07:51:51 2023 +0000
Repo: https://gitea.pangea.org/pangea/django-orchestra.git
11 lines
331 B
Python
11 lines
331 B
Python
from django.utils.translation import gettext_lazy as _
|
|
from djcelery.admin import PeriodicTaskAdmin
|
|
|
|
from orchestra.admin.utils import admin_date
|
|
|
|
|
|
display_last_run_at = admin_date('last_run_at', short_description=_("Last run"))
|
|
|
|
|
|
PeriodicTaskAdmin.list_display = ('__unicode__', display_last_run_at, 'total_run_count', 'enabled')
|