-
-
Save jorilallo/1237896 to your computer and use it in GitHub Desktop.
Revisions
-
sjl created this gist
Sep 23, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # Put this in your urls.py file after the admin.autodiscover() line. # --------------------------------------------------------------------------------- # Monkeypatch the Celery admin to show a column for task run time in the list view. from djcelery.admin import TaskMonitor from djcelery.models import TaskState admin.site.unregister([TaskState]) TaskMonitor.list_display += ('runtime',) admin.site.register(TaskState, TaskMonitor)