mark looked_at on save

This commit is contained in:
Sanj 2012-02-23 19:18:05 +05:30
parent a9339e5cdf
commit 450ff5ae61

View File

@ -128,6 +128,7 @@ def stringtranslate(request):
return render_to_json_response({'error': 'this only works for the translation model'}) return render_to_json_response({'error': 'this only works for the translation model'})
obj = Translation.objects.get(pk=id) obj = Translation.objects.get(pk=id)
obj.string_trans = translation obj.string_trans = translation
obj.looked_at = True
obj.save() obj.save()
return render_to_json_response({'ok': 'ok'}) return render_to_json_response({'ok': 'ok'})