return HttpResponse(tag_output, mimetype="text/plain")
def related_questions(request):
if request.POST and request.POST.get('title', None):
return HttpResponse(simplejson.dumps(
[dict(title=q.title, url=q.get_absolute_url(), score=q.score, summary=q.summary)
return HttpResponse(tag_output, mimetype="text/plain")
def related_questions(request):
if request.POST and request.POST.get('title', None):
return HttpResponse(simplejson.dumps(
[dict(title=q.title, url=q.get_absolute_url(), score=q.score, summary=q.summary)