Ticket #3629: filepathfield.patch

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

First Patch File

  • django/oldforms/__init__.py

     
    918918            for root, dirs, files in os.walk(path):
    919919                for f in files:
    920920                    if match is None or match_re.search(f):
    921                         choices.append((os.path.join(root, f), f))
     921                        f = os.path.join(root, f)
     922                        choices.append((f, f.replace(path, "", 1)))
    922923        else:
    923924            try:
    924925                for f in os.listdir(path):
Back to Top