diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-07-12 23:25:22 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-07-12 23:25:22 +0000 |
| commit | e47d8e7fb17c31a6ef5524957c8f8634ed6a64f5 (patch) | |
| tree | d60e4ee3d5510e44a367fa469a8b65a8c02e6ab3 | |
| parent | 185ba8f7e4faafdc1cafb6d6559015c96345f209 (diff) | |
Fixed #7734 -- Fixed a Python 2.3 compatibility problem.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/query.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index 986846fc3a..ef09b0f121 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -8,6 +8,11 @@ from django.db.models import signals, sql from django.dispatch import dispatcher from django.utils.datastructures import SortedDict +try: + set +except NameError: + from sets import Set as set # Python 2.3 fallback + # Used to control how many objects are worked with at once in some cases (e.g. # when deleting objects). CHUNK_SIZE = 100 |
