diff --git a/beat/web/libraries/templates/libraries/edition.html b/beat/web/libraries/templates/libraries/edition.html index 3f51064712eab3c4e1b33b344ff2347686aa645e..63f198c96bd2965c2da191233102f60a5dbd5f27 100644 --- a/beat/web/libraries/templates/libraries/edition.html +++ b/beat/web/libraries/templates/libraries/edition.html @@ -192,7 +192,7 @@ <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <label for="source-code">Source code:</label> - <textarea id="source-code">{% if library %}{{ library.source_code_file.read }}{% endif %}</textarea> + <textarea id="source-code">{% if library %}{{ library.source_code }}{% endif %}</textarea> <p class="help">{{ texts.library_code|safe }}</p> </div> </div> diff --git a/beat/web/libraries/templates/libraries/panels/editor.html b/beat/web/libraries/templates/libraries/panels/editor.html index 00c7579f74ea40685173b9c11ffc1ac8c33da1f2..ad403976b88c0d50ee61fa76fbf8c42d78455d8d 100644 --- a/beat/web/libraries/templates/libraries/panels/editor.html +++ b/beat/web/libraries/templates/libraries/panels/editor.html @@ -74,7 +74,7 @@ {% endwith %} {% if open_source %} - <textarea class="form-control" id="code-display">{{ object.source_code_file.read }}</textarea> + <textarea class="form-control" id="code-display">{{ object.source_code }}</textarea> <p class="help-block">{{ texts.code|safe }}</p> {% else %} <div class="alert alert-warning">