Skip to content
Snippets Groups Projects
Commit c57df85e authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Make the rendering of the two file uploads more consistent

parent f59a2e84
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,9 @@ class StreamFieldFile(File):
self.filename = filename or os.path.basename(self.name)
self._committed = False
def __str__(self):
return self.filename
def __eq__(self, other):
return self.filename == other.filename and self.size == other.size
......
......@@ -6,7 +6,7 @@
<p>
<input type="checkbox" name="{{ widget.checkbox_name }}-{{ forloop.counter }}" id="{{ widget.checkbox_id }}-{{ forloop.counter }}">
<label for="{{ widget.checkbox_id }}-{{ forloop.counter }}"></label>
<a href="{{ file.url }}">{{ file.filename }}</a>
<a href="{{ file.url }}">{{ file }}</a>
</p>
{% endfor %}
{{ widget.input_text }}{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment