title: Remove path from {{i.file.name}}
body: <p>I use the following to show attached files in my Post (Django/Python):</p>
  <pre><code>{% for i in post.file_set.all %}&lt;p class=&quot;article-content mt-2 mb-1&quot;&gt;&lt;strong&gt;Attachment {{ forloop.counter }}: &lt;/strong&gt;&lt;a href=&quot;{{i.file.url}}&quot; &gt;{{i.file.name}}&lt;/a&gt;&lt;/p&gt;{% endfor %}
  </code></pre>
  <p>Problem is, using {{i.file.name}} I see full url, is it possible to see just file name?</p>
  <pre><code>Attachment 1: PN_files/2022/02/14/file_name.xlsx
  </code></pre>
  <p>I would like:</p>
  <pre><code>Attachment 1: file_name.xlsx
  </code></pre>