Skip to content

Add a search bar to filter tasks by title #2

Description

@arunb-lab

Add a search input on the task list page that filters tasks by title.

Suggested approach

  • Add a text input to task_list.html that submits a q query parameter
  • In the list view, read request.GET.get('q') and filter with Task.objects.filter(title__icontains=q)
  • Keep the existing list behavior when no query is provided

This is listed as one of the Learning Exercises in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions