summaryrefslogtreecommitdiff
path: root/tests/modeltests/basic/models.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-20 01:55:53 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-20 01:55:53 +0000
commit94c320d8a982ce30f6dd4e7556f2696229b761c7 (patch)
tree165ff89b8b262118430ea2f7c1d26cc5af864c09 /tests/modeltests/basic/models.py
parent28a4aa6f49b11881d43a585f118a3d0537ba9084 (diff)
queryset-refactor: Merged to [6381]
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/basic/models.py')
-rw-r--r--tests/modeltests/basic/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/modeltests/basic/models.py b/tests/modeltests/basic/models.py
index 0a09579761..58770ef2ce 100644
--- a/tests/modeltests/basic/models.py
+++ b/tests/modeltests/basic/models.py
@@ -33,6 +33,11 @@ __test__ = {'API_TESTS': """
>>> a.id
1L
+# Models have a pk property that is an alias for the primary key attribute (by
+# default, the 'id' attribute).
+>>> a.pk
+1L
+
# Access database columns via Python attributes.
>>> a.headline
'Area man programs in Python'