django-orchestra/orchestra/contrib/tasks/admin.py

9 lines
329 B
Python
Raw Normal View History

from django.utils.translation import gettext_lazy as _
2015-05-03 17:44:46 +00:00
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"))
2023-09-27 18:53:43 +00:00
PeriodicTaskAdmin.list_display = ('__unicode__', display_last_run_at, 'total_run_count', 'enabled')