mark looked_at on save
This commit is contained in:
parent
a9339e5cdf
commit
450ff5ae61
|
@ -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'})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user