Skip to content

Commit

Permalink
Add autocomplete fields (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
jumasheff committed Aug 10, 2020
1 parent c875a48 commit 23128da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions orchestra/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ class TimeEntryAdmin(AjaxSelectAdmin):


@admin.register(Todo)
class TodoAdmin(AjaxSelectAdmin):
form = make_ajax_form(Todo, {
'task': 'tasks',
})
class TodoAdmin(admin.ModelAdmin):
autocomplete_fields = ('task', 'parent_todo')
list_display = ('id', 'created_at', 'task', 'description', 'completed')
ordering = ('-created_at',)
search_fields = (
Expand Down

0 comments on commit 23128da

Please sign in to comment.