Browse files

magic-removal: Fixed #1536 -- FilePathField with recursive=True no lo…

…nger loses subdirectory. Thanks, Andy Dustman

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 45be99d commit c551eac5e4ad99fb864f3e1efcb84cf456b812f6 @adrianholovaty adrianholovaty committed Apr 23, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/forms/
@@ -879,7 +879,7 @@ def __init__(self, field_name, path, match=None, recursive=False, is_required=Fa
for root, dirs, files in os.walk(path):
for f in files:
if match is None or
- choices.append((os.path.join(path, f), f))
+ choices.append((os.path.join(root, f), f))
for f in os.listdir(path):

0 comments on commit c551eac

Please sign in to comment.