Skip to content

Commit

Permalink
Set default ordering for Task Results admin (#97)
Browse files Browse the repository at this point in the history
Fixes #93
  • Loading branch information
bmihelac authored Aug 4, 2024
1 parent 4c5f63e commit 1e80713
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 1e80713

Please sign in to comment.