diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-09-17 15:49:03 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-09-17 15:49:03 +0000 |
| commit | 0de9a6490577432b9d6204097ac22f57d9c60981 (patch) | |
| tree | 2c4f0eca60742fa10cd4634f3ab2ce088bde2fe7 /tests/modeltests/basic/models.py | |
| parent | 019e3c61e4390b0e5ad981256d6426e24083626a (diff) | |
newforms-admin: Merged to [6370].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/basic/models.py')
| -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' |
