Opened 10 years ago

Closed 9 years ago

#3629 closed (fixed)

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

Reported by: James Turnbull <james@…> Owned by: adrian
Component: contrib.admin Version: master
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: UI/UX:


Consider a FilePathField, with recursive=True and path set to this directory:


within that directory we have two folders and files:


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:


Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by James Turnbull <james@…>

First Patch File

comment:1 Changed 9 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

Thanks James

comment:2 Changed 9 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(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