Changeset 3146
- Timestamp:
- 06/19/06 07:30:43 (2 years ago)
- Files:
-
- django/trunk/django/forms/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/forms/__init__.py
r3113 r3146 899 899 def __init__(self, field_name, path, match=None, recursive=False, is_required=False, validator_list=None): 900 900 import os 901 from django.db.models import BLANK_CHOICE_DASH 901 902 if match is not None: 902 903 import re 903 904 match_re = re.compile(match) 904 choices = []905 choices = not is_required and BLANK_CHOICE_DASH[:] or [] 905 906 if recursive: 906 907 for root, dirs, files in os.walk(path):
