diff options
Diffstat (limited to 'core/views_caves.py')
-rw-r--r-- | core/views_caves.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/views_caves.py b/core/views_caves.py index d9d6682..943e797 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -22,7 +22,7 @@ from django.shortcuts import get_object_or_404, render import troggle.settings as settings import troggle.core.models as models from troggle.core.models import Expedition -from troggle.core.models_caves import CaveSlug, Cave, CaveAndEntrance, Survey, QM, CaveDescription, EntranceSlug, Entrance, Area, SurvexStation +from troggle.core.models_caves import CaveSlug, Cave, CaveAndEntrance, QM, CaveDescription, EntranceSlug, Entrance, Area, SurvexStation from troggle.core.forms import CaveForm, CaveAndEntranceFormSet, VersionControlCommentForm, EntranceForm, EntranceLetterForm from troggle.helper import login_required_if_public @@ -267,14 +267,14 @@ def surveyindex(request): expeditions=Expedition.objects.order_by("-year") return render(request,'survey.html',locals()) -def survey(request,year,wallet_number): - surveys=Survey.objects.all() - expeditions=Expedition.objects.order_by("-year") - current_expedition=Expedition.objects.filter(year=year)[0] +# def survey(request,year,wallet_number): + # surveys=Survey.objects.all() + # expeditions=Expedition.objects.order_by("-year") + # current_expedition=Expedition.objects.filter(year=year)[0] - if wallet_number!='': - current_survey=Survey.objects.filter(expedition=current_expedition,wallet_number=wallet_number)[0] - # notes=current_survey.scannedimage_set.filter(contents='notes') + # if wallet_number!='': + # current_survey=Survey.objects.filter(expedition=current_expedition,wallet_number=wallet_number)[0] + # # notes=current_survey.scannedimage_set.filter(contents='notes') # planSketches=current_survey.scannedimage_set.filter(contents='plan') # elevationSketches=current_survey.scannedimage_set.filter(contents='elevation') |