Changeset 3044
- Timestamp:
- 05/31/06 23:47:56 (2 years ago)
- Files:
-
- django/trunk/django/db/models/query.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/query.py
r3019 r3044 4 4 from django.dispatch import dispatcher 5 5 from django.utils.datastructures import SortedDict 6 7 6 import operator 7 import re 8 8 9 9 # For Python 2.3 … … 60 60 61 61 def quote_only_if_word(word): 62 if ' ' in word:62 if re.search('\W', word): # Don't quote if there are spaces or non-word chars. 63 63 return word 64 64 else:
