summaryrefslogtreecommitdiffstats
path: root/expo/views_caves.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-22 01:50:16 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-22 01:50:16 +0100
commitc38dfd20a1f66d40e67d478f5b340557a2ac20c2 (patch)
treea6e9166a4a03e32373430e4a7a9a16629cc73285 /expo/views_caves.py
parent83634fe95a124c32e333383c6202bbb41986a343 (diff)
downloadtroggle-c38dfd20a1f66d40e67d478f5b340557a2ac20c2.tar.gz
troggle-c38dfd20a1f66d40e67d478f5b340557a2ac20c2.tar.bz2
troggle-c38dfd20a1f66d40e67d478f5b340557a2ac20c2.zip
[svn] * Make subcave urls work.
* Add json and xml download to admin.
Diffstat (limited to 'expo/views_caves.py')
-rw-r--r--expo/views_caves.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/expo/views_caves.py b/expo/views_caves.py
index 51c9e11..64ec6e2 100644
--- a/expo/views_caves.py
+++ b/expo/views_caves.py
@@ -57,11 +57,11 @@ def subcave(request, cave_id, subcave):
subcaveSeq=re.findall('(?:/)([^/]*)',subcave)
print subcaveSeq
cave=models.Cave.objects.get(kataster_number = cave_id)
- subcave=models.Subcave.objects.get(name=subcaveSeq[0], cave=cave)
+ 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(name=subcaveUrlSegment)
+ subcave=subcave.children.get(title=subcaveUrlSegment)
print subcave
return render_response(request,'subcave.html', {'subcave': subcave,'cave':cave})