Skip to content

Commit

Permalink
modify search to run partial searches rather than starts_with searches
Browse files Browse the repository at this point in the history
  • Loading branch information
azneto committed May 31, 2021
1 parent 261ceb6 commit d94869c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machado/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ def search(self):
)

for i in q.split():
result |= sqs.filter(text__startswith=i)
result |= sqs.filter(text__contains=i)

return result

0 comments on commit d94869c

Please sign in to comment.