Permalink
Browse files

fixing /data error

  • Loading branch information...
1 parent 8a9e21e commit 94beea131c4ef78b379bff4ef56e535780d3d1d9 @shashashasha committed Apr 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 meshu/views.py
View
@@ -124,6 +124,9 @@ def item_handler(request, item_id, template, view):
def item_from_data(request):
+ if request.POST.has_key('location_data') == False or request.POST.has_key('location_data') == False:
+ return render_to_response('404.html', {}, context_instance=RequestContext(request))
+
meshu = Meshu()
meshu.title = request.POST.get('title', 'My Meshu')

0 comments on commit 94beea1

Please sign in to comment.