Django

Code

Changeset 4896

Show
Ignore:
Timestamp:
04/01/07 00:42:48 (1 year ago)
Author:
mtredinnick
Message:

Fixed #3629 -- In oldforms, differentiate files in a recursive FilePathField?.
Thanks, James Turnbull.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/oldforms/__init__.py

    r4698 r4896  
    924924                for f in files: 
    925925                    if match is None or match_re.search(f): 
    926                         choices.append((os.path.join(root, f), f)) 
     926                        f = os.path.join(root, f) 
     927                        choices.append((f, f.replace(path, "", 1))) 
    927928        else: 
    928929            try: