# taken from https://stackoverflow.com/questions/2683621/django-filefield-how-to-return-filename-only-in-template

import os

from django import template


register = template.Library()

@register.filter
def filename(value):
    return os.path.basename(value.file.name)
9a28090e71798abf5e346264bf66f08c5913df22
<mask token>

<mask token>


@register.filter
def filename(value):
    return os.path.basename(value.file.name)

<mask token>
register = template.Library()


@register.filter
def filename(value):
    return os.path.basename(value.file.name)

import os
from django import template
register = template.Library()


@register.filter
def filename(value):
    return os.path.basename(value.file.name)

# taken from https://stackoverflow.com/questions/2683621/django-filefield-how-to-return-filename-only-in-template

import os

from django import template


register = template.Library()

@register.filter
def filename(value):
    return os.path.basename(value.file.name)