From f8397cfc6421c4f723c8bc974687ffb5a7a87f96 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 10 Sep 2020 17:43:51 +0200 Subject: [PATCH] [dataformats][templates] Use file field property to read content Dataformats have properties related to their file fields that does the proper handling for reading their content use that. --- beat/web/dataformats/templates/dataformats/panels/editor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beat/web/dataformats/templates/dataformats/panels/editor.html b/beat/web/dataformats/templates/dataformats/panels/editor.html index d9c44efac..4ebaa3f06 100644 --- a/beat/web/dataformats/templates/dataformats/panels/editor.html +++ b/beat/web/dataformats/templates/dataformats/panels/editor.html @@ -43,7 +43,7 @@ </div> </div> {% endif %} - <textarea class="form-control" id="declaration-display">{{ object.declaration_file.read }}</textarea> + <textarea class="form-control" id="declaration-display">{{ object.declaration }}</textarea> <p class="help-block">{{ texts.json|safe }}</p> </div> </div> -- GitLab