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>
Note:
See TracTickets
for help on using tickets.
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.