forked from expo/troggle
[svn] Remove old subcave model, along with mptt and feincms. Also move OtherCaveNames admin representation to an inline in Cave.
This commit is contained in:
@@ -56,19 +56,6 @@ def survexblock(request, survexpath):
|
||||
ftext = survexblock.text
|
||||
return render_with_context(request,'survexblock.html', {'survexblock':survexblock, 'ftext':ftext, })
|
||||
|
||||
def subcave(request, cave_id, subcave):
|
||||
print subcave
|
||||
subcaveSeq=re.findall('(?:/)([^/]*)',subcave)
|
||||
print subcaveSeq
|
||||
cave=models.Cave.objects.get(kataster_number = cave_id)
|
||||
subcave=models.Subcave.objects.get(title=subcaveSeq[0], cave=cave)
|
||||
if len(subcaveSeq)>1:
|
||||
for subcaveUrlSegment in subcaveSeq[1:]:
|
||||
if subcaveUrlSegment:
|
||||
subcave=subcave.children.get(title=subcaveUrlSegment)
|
||||
print subcave
|
||||
return render_with_context(request,'subcave.html', {'subcave': subcave,'cave':cave})
|
||||
|
||||
def surveyindex(request):
|
||||
surveys=Survey.objects.all()
|
||||
expeditions=Expedition.objects.order_by("-year")
|
||||
|
||||
Reference in New Issue
Block a user