Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no longer require csrf validation on photo upload since phone does no…

…t support it
  • Loading branch information...
commit 1750398ca617896e670a37205675ad26a96d24c8 1 parent cb9eef0
@trey0 trey0 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  geocamLens/ViewLensAbstract.py
View
2  geocamLens/ViewLensAbstract.py
@@ -15,6 +15,7 @@
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.contrib.auth.models import User
+from django.views.decorators.csrf import csrf_exempt
from geocamUtil import anyjson as json
from geocamUtil.icons import cacheIcons
@@ -139,6 +140,7 @@ def editImage(self, request, imgId):
def editImageWrapper(self, request, imgId):
return self.editImage0(request, imgId, 'editImageWrapper.html')
+ @csrf_exempt
def uploadImageAuth(self, request):
return self.uploadImage(request, request.user.username)
Please sign in to comment.
Something went wrong with that request. Please try again.