diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2022-12-29 13:52:37 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2022-12-29 13:52:37 +0000 |
commit | b131e567b5a6a42de43874ff7fe92c2daa1dfc74 (patch) | |
tree | fa81db700c0b80533bfd4b808e5626a45a811407 /core/views/logbooks.py | |
parent | 5bbb363f12c691ead1dce423dc4836cbd7470c84 (diff) | |
download | troggle-b131e567b5a6a42de43874ff7fe92c2daa1dfc74.tar.gz troggle-b131e567b5a6a42de43874ff7fe92c2daa1dfc74.tar.bz2 troggle-b131e567b5a6a42de43874ff7fe92c2daa1dfc74.zip |
logbooksearch ?
Diffstat (limited to 'core/views/logbooks.py')
-rw-r--r-- | core/views/logbooks.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/views/logbooks.py b/core/views/logbooks.py index 52e2d11..375ec6e 100644 --- a/core/views/logbooks.py +++ b/core/views/logbooks.py @@ -227,6 +227,11 @@ def logbookentry(request, date, slug): return render(request, 'errors/generic.html',{'message':msg}) def logbookSearch(request, extra): + '''This uses Django free text search of a text field to find the list of logbook entries. + We need to create a search box form to set up the ?q=searchterms URL GET + This has not been touched since we were running on Django 1.11 and probably earlier.. + A better idea is just to delete it and rely on he full text search that Wookey did. + ''' query_string = '' found_entries = None if ('q' in request.GET) and request.GET['q'].strip(): |