Changes between Initial Version and Version 1 of Ticket #14497, comment 12
- Timestamp:
- Feb 4, 2015, 7:07:28 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14497, comment 12
initial v1 1 1 Let me suggest a small adding. Usually is not necessary to show the complete path, but just the file name. This is trivial by "import os.path" and applying "os.path.basename" as below: 2 2 {{{ 3 3 return mark_safe(u'<a href="%s">%s</a>' 4 4 % (escape(value.url), 5 5 os.path.basename(force_unicode(value)))) 6 }}}