Opened 11 years ago

Closed 11 years ago

#21646 closed New feature (wontfix)

Add template tag to get the name of a file

Reported by: anonymous Owned by: nobody
Component: Template system Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

For example:

<h1>{{ a.myfile | filename }}</h1>

Change History (1)

comment:1 by Claude Paroz, 11 years ago

Resolution: wontfix
Status: newclosed

The current thread is to keep Django a core framework, not providing every utility which might be useful. I'd say here that you can easily write that filter in your own library. If you disagree, try to get some consensus on the django-developers mailing list.

Note: See TracTickets for help on using tickets.
Back to Top