Skip to content

Commit d75a850

Browse files
kyonleeauvipy
authored andcommitted
feat(admin): add task field to search_fields
Extended the search functionality in the PeriodicTaskAdmin by adding 'task' to the search_fields. This allows users to search periodic tasks by their task names, improving the admin interface usability.
1 parent 9e92bb5 commit d75a850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_celery_beat/admin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class PeriodicTaskAdmin(admin.ModelAdmin):
118118
'last_run_at', 'one_off')
119119
list_filter = ['enabled', 'one_off', 'task', 'start_time', 'last_run_at']
120120
actions = ('enable_tasks', 'disable_tasks', 'toggle_tasks', 'run_tasks')
121-
search_fields = ('name',)
121+
search_fields = ('name', 'task',)
122122
fieldsets = (
123123
(None, {
124124
'fields': ('name', 'regtask', 'task', 'enabled', 'description',),

0 commit comments

Comments
 (0)