diff options
author | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-08-23 23:29:05 +0100 |
---|---|---|
committer | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-08-23 23:29:05 +0100 |
commit | 0ea70273feee82bfeb25aeae65bdbbec9cf47743 (patch) | |
tree | 7614c8cbbb9d911e9a3b8d96a274fbc916c02c46 /core/views_logbooks.py | |
parent | c66b5e2dadcc7a4b501b479c30f183c3bf81af42 (diff) | |
download | troggle-0ea70273feee82bfeb25aeae65bdbbec9cf47743.tar.gz troggle-0ea70273feee82bfeb25aeae65bdbbec9cf47743.tar.bz2 troggle-0ea70273feee82bfeb25aeae65bdbbec9cf47743.zip |
quick hack to make work in django1.0 Photo to DPhoto
Diffstat (limited to 'core/views_logbooks.py')
-rw-r--r-- | core/views_logbooks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views_logbooks.py b/core/views_logbooks.py index e5cc4e0..0d6aea7 100644 --- a/core/views_logbooks.py +++ b/core/views_logbooks.py @@ -10,7 +10,8 @@ from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect
# Django uses Context, not RequestContext when you call render_to_response. We always want to use RequestContext, so that django adds the context from settings.TEMPLATE_CONTEXT_PROCESSORS. This way we automatically get necessary settings variables passed to each template. So we use a custom method, render_response instead of render_to_response. Hopefully future Django releases will make this unnecessary.
-from troggle.alwaysUseRequestContext import render_response
+from django.shortcuts import render_to_response as render_response
+#from troggle.alwaysUseRequestContext import render_response
import re
|