Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…nger loses subdirectory. Thanks, Andy Dustman

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c551eac5e4ad99fb864f3e1efcb84cf456b812f6 1 parent 45be99d
Adrian Holovaty authored April 23, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/__init__.py
2  django/forms/__init__.py
@@ -879,7 +879,7 @@ def __init__(self, field_name, path, match=None, recursive=False, is_required=Fa
879 879
             for root, dirs, files in os.walk(path):
880 880
                 for f in files:
881 881
                     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))
883 883
         else:
884 884
             try:
885 885
                 for f in os.listdir(path):

0 notes on commit c551eac

Please sign in to comment.
Something went wrong with that request. Please try again.