Opened 18 years ago

Closed 18 years ago

#3629 closed (fixed)

FilePathField with recursive=True should show path to files in Admin

Reported by: James Turnbull <james@…> 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)

filepathfield.patch (630 bytes ) - added by James Turnbull <james@…> 18 years ago.
First Patch File

Download all attachments as: .zip

Change History (3)

by James Turnbull <james@…>, 18 years ago

Attachment: filepathfield.patch added

First Patch File

comment:1 by Chris Beaven, 18 years ago

Triage Stage: UnreviewedReady for checkin

Thanks James

comment:2 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [4896]) Fixed #3629 -- In oldforms, differentiate files in a recursive FilePathField.
Thanks, James Turnbull.

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