Skip to content
Snippets Groups Projects

Fix template FileField reading

Merged Samuel GAIST requested to merge fix_template_filefield_reading into django3_migration
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -246,7 +246,7 @@
{% endwith %}{# groups, uses or parameters #}
{% if open_source and not object.is_binary %}
<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>
{% elif object.is_binary %}
{% if object.valid %}
Loading