diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 364: small fixes to work with django 1.4

Message ID 20120504043910.22625.85523.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson May 4, 2012, 4:39 a.m. UTC
------------------------------------------------------------
revno: 364
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Fri 2012-05-04 16:37:19 +1200
message:
  small fixes to work with django 1.4
modified:
  lava_markitup/views.py
  lava_server/settings/common.py


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_markitup/views.py'
--- lava_markitup/views.py	2011-10-11 09:48:46 +0000
+++ lava_markitup/views.py	2012-05-04 04:37:19 +0000
@@ -1,4 +1,4 @@ 
-from django.contrib.csrf.middleware import csrf_exempt
+from django.views.decorators.csrf import csrf_exempt
 from django.http import HttpResponse
 from django.template import RequestContext, loader
 from markdown import markdown

=== modified file 'lava_server/settings/common.py'
--- lava_server/settings/common.py	2012-04-20 16:27:19 +0000
+++ lava_server/settings/common.py	2012-05-04 04:37:19 +0000
@@ -118,7 +118,7 @@ 
 ]
 
 TEMPLATE_CONTEXT_PROCESSORS = [
-    'django.core.context_processors.auth',
+    "django.contrib.auth.context_processors.auth",
     "django.core.context_processors.debug",
     "django.core.context_processors.i18n",
     "django.core.context_processors.media",