diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-03 20:49:04 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-03 20:49:04 +0100 |
commit | b4388d838edf7aa25ddec2ff2978fc378da08b5b (patch) | |
tree | 0eaecdb724c9c348c92ddcb0cde5008ed57e1e90 /core | |
parent | 8446047ab246b186f0404a1f8acbf719a6355a78 (diff) | |
download | troggle-b4388d838edf7aa25ddec2ff2978fc378da08b5b.tar.gz troggle-b4388d838edf7aa25ddec2ff2978fc378da08b5b.tar.bz2 troggle-b4388d838edf7aa25ddec2ff2978fc378da08b5b.zip |
[svn]
Diffstat (limited to 'core')
-rw-r--r-- | core/views_caves.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/views_caves.py b/core/views_caves.py index b51fb0b..af91742 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -2,7 +2,6 @@ from troggle.core.models import Cave, CaveAndEntrance, Survey, Expedition, QM import troggle.core.models as models
import troggle.settings as settings
from django.forms.models import formset_factory
-import search
from django.core.urlresolvers import reverse
from utils import render_with_context # see views_logbooks for explanation on this.
from django.http import HttpResponseRedirect
@@ -69,17 +68,6 @@ def subcave(request, cave_id, subcave): print subcave
return render_with_context(request,'subcave.html', {'subcave': subcave,'cave':cave})
-def caveSearch(request):
- query_string = ''
- found_entries = None
- if ('q' in request.GET) and request.GET['q'].strip():
- query_string = request.GET['q']
- entry_query = search.get_query(query_string, ['underground_description','official_name',])
- found_entries = Cave.objects.filter(entry_query)
-
- return render_with_context(request,'cavesearch.html',
- { 'query_string': query_string, 'found_entries': found_entries,})
-
def surveyindex(request):
surveys=Survey.objects.all()
expeditions=Expedition.objects.order_by("-year")
|