mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 02:28:12 +08:00
add attempt_count to admin
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ retry_failed.short_description = _("Resubmit selected tasks to queue")
|
|||||||
class FailAdmin(admin.ModelAdmin):
|
class FailAdmin(admin.ModelAdmin):
|
||||||
"""model admin for failed tasks."""
|
"""model admin for failed tasks."""
|
||||||
|
|
||||||
list_display = ("name", "func", "started", "stopped", "short_result")
|
list_display = ("name", "func", "started", "stopped", "short_result", "attempt_count")
|
||||||
|
|
||||||
def has_add_permission(self, request):
|
def has_add_permission(self, request):
|
||||||
"""Don't allow adds."""
|
"""Don't allow adds."""
|
||||||
|
|||||||
Reference in New Issue
Block a user