diff --git a/beat/web/dataformats/templates/dataformats/panels/editor.html b/beat/web/dataformats/templates/dataformats/panels/editor.html
index d9c44efac8351f69c29798159820a4ac179681b3..4ebaa3f0623d5d0b183c374309409b5f48bd5466 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>