Skip to content
Snippets Groups Projects

Fix template FileField reading

Merged Samuel GAIST requested to merge fix_template_filefield_reading into django3_migration
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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">
Loading