diff options
| author | Justin Bronn <jbronn@gmail.com> | 2007-09-20 13:02:11 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2007-09-20 13:02:11 +0000 |
| commit | 7376474260a967e7ad88ee5bf554b4a28e3e7feb (patch) | |
| tree | 735479f07bbe7cde8385b44ff76552afc9c2bffc /tests/modeltests/basic | |
| parent | 69452d623794bc9ef160c33c5e9b02180ca4848d (diff) | |
gis: Merged revisions 6021-6393 via svnmerge from [repos:django/trunk trunk].
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/basic')
| -rw-r--r-- | tests/modeltests/basic/models.py | 5 |
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' |
