From 263b640641b811ce0dae6b60c509322acf12817c Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 22 Jul 2009 16:18:00 +0100 Subject: [svn] Various bug fixes, using more raw_id fields in admin so it loads faster. I had to put onLoad="contentHeight();" back into the base template. This is a bad solution, I would rather use Martin's, but it wasn't working. --- core/views_caves.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/views_caves.py') diff --git a/core/views_caves.py b/core/views_caves.py index 3f01c2f..04f2120 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -37,7 +37,7 @@ def qm(request,cave_id,qm_id,year,grade=None): return render_with_context(request,'qm.html',locals()) except QM.DoesNotExist: - url=urlparse.urljoin(settings.URL_ROOT, r'/admin/expo/qm/add/'+'?'+ r'number=' + qm_id) + url=urlparse.urljoin(settings.URL_ROOT, r'/admin/core/qm/add/'+'?'+ r'number=' + qm_id) if grade: url += r'&grade=' + grade return HttpResponseRedirect(url) @@ -76,5 +76,4 @@ def survey(request,year,wallet_number): def cave_description(request, cavedescription_name): cave_description = get_object_or_404(CaveDescription, short_name = cavedescription_name) - print cave_description.long_name return render_with_context(request,'cave_description.html', locals()) \ No newline at end of file -- cgit v1.2.3