def update_translations(request):
	"""
	Update translations: delete orphan translations and creates empty translations for new objects in database.
	"""
	FieldTranslation.delete_orphan_translations()
	num_translations = FieldTranslation.update_translations()
	return render_to_response('modeltranslation/admin/update_translations_ok.html',{"num_translations":num_translations}, RequestContext(request))