summaryrefslogtreecommitdiff
path: root/tests/modeltests/basic/models.py
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-07-14 05:04:57 +0000
committerBrian Rosner <brosner@gmail.com>2008-07-14 05:04:57 +0000
commit2624f4ea563e8139c7f19a20d9b723d39b1e6ac1 (patch)
tree975193cb2d38ec3369e2688818d41e07660fb40a /tests/modeltests/basic/models.py
parentf3cda0b77afb2a6e22520b4c9f1c6d111add6ac9 (diff)
newforms-admin: Merged from trunk up to [7917].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/basic/models.py')
-rw-r--r--tests/modeltests/basic/models.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/modeltests/basic/models.py b/tests/modeltests/basic/models.py
index c3ad38d661..835c5c90cf 100644
--- a/tests/modeltests/basic/models.py
+++ b/tests/modeltests/basic/models.py
@@ -4,12 +4,18 @@
This is a basic model with only two non-primary-key fields.
"""
-
+# Python 2.3 doesn't have set as a builtin
try:
set
except NameError:
from sets import Set as set
+# Python 2.3 doesn't have sorted()
+try:
+ sorted
+except NameError:
+ from django.utils.itercompat import sorted
+
from django.db import models
class Article(models.Model):