Opened 18 years ago
Closed 18 years ago
#3629 closed (fixed)
FilePathField with recursive=True should show path to files in Admin
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | FilePathField, recursive, path | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Consider a FilePathField, with recursive=True and path set to this directory:
/home/user/blah/
within that directory we have two folders and files:
/home/user/blah/apples/index.html
/home/user/blah/monkeys/index.html
However, the admin shows this as two files, both just called "index.html".
The attached patch strips off the common prefix and displays the drop-down contents as:
apples/index.html
monkeys/index.html
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | filepathfield.patch added |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
First Patch File