Ticket #1536: FilePathField-recursive-fix.diff

File FilePathField-recursive-fix.diff, 569 bytes (added by Andy Dustman <farcepest@…>, 19 years ago)

Fix for recursive FilePathField

  • django/forms/__init__.py

     
    879879            for root, dirs, files in os.walk(path):
    880880                for f in files:
    881881                    if match is None or match_re.search(f):
    882                         choices.append((os.path.join(path, f), f))
     882                        choices.append((os.path.join(root, f), f))
    883883        else:
    884884            try:
    885885                for f in os.listdir(path):
Back to Top