def communityClass(request):
com = request.GET.get('com')
result = campmodel.CommunityInfo.objects.filter(
com=com).order_by("-time")[:10]
data = []
for i in result:
data.append({"id": i.id, "time": str(i.time), "title": i.title,
"content": i.content, "picture": str(i.picture)})
return HttpResponse(json.dumps(data))