Skip to content

Commit

Permalink
Set default ordering for Task Results admin (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmihelac committed Aug 2, 2024
1 parent 66213ba commit 91cbd51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_tasks/backends/database/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class DBTaskResultAdmin(admin.ModelAdmin):
"queue_name",
)
list_filter = ("status", "priority", "queue_name")
ordering = ['-enqueued_at']

def has_add_permission(
self, request: HttpRequest, obj: Optional[DBTaskResult] = None
Expand Down

0 comments on commit 91cbd51

Please sign in to comment.