Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/model_admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class PersonAdmin(ModelAdmin):
def get_search_results(cls, qs: orm.Query, term: str) -> orm.Query:
""" filter the qs from the search term """

return qs.filter(Person.name.ilike(f"%{term}%")
return qs.filter(Person.name.ilike(f"%{term}%"))
```

## Registering the Admin
Expand Down