api.api add cache info, add list type

This commit is contained in:
j 2011-01-13 08:33:14 +00:00
commit e61ea929ee
11 changed files with 68 additions and 51 deletions

View file

@ -39,7 +39,7 @@ def editNews(request):
item = get_object_or_404_json(models.Text, pk=itemId)
response['data']['page'] = item.html()
return render_to_json_response(response)
actions.register(editNews)
actions.register(editNews, cache=False)
def findNews(request):
@ -78,7 +78,7 @@ def editText(request):
item = get_object_or_404_json(models.Text, pk=itemId)
response['data']['page'] = item.html()
return render_to_json_response(response)
actions.register(editText)
actions.register(editText, cache=False)
def findText(request):