From a72324bf7f001f163aa75b73d7eb3e7601c29b60 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 1 Dec 2007 21:18:45 +0000 Subject: [PATCH] Fixed #6068 -- Updated docstrings in model tests to make the documentation examples correct. Thanks Wang Chun. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6813 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/empty/models.py | 2 +- tests/modeltests/select_related/models.py | 2 +- tests/modeltests/serializers/models.py | 2 +- tests/modeltests/test_client/models.py | 2 +- tests/modeltests/user_commands/models.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/modeltests/empty/models.py b/tests/modeltests/empty/models.py index 2493b53837..d57087134e 100644 --- a/tests/modeltests/empty/models.py +++ b/tests/modeltests/empty/models.py @@ -1,5 +1,5 @@ """ -39. Empty model tests +40. Empty model tests These test that things behave sensibly for the rare corner-case of a model with no fields. diff --git a/tests/modeltests/select_related/models.py b/tests/modeltests/select_related/models.py index 43efab3a7d..f0fd121665 100644 --- a/tests/modeltests/select_related/models.py +++ b/tests/modeltests/select_related/models.py @@ -1,5 +1,5 @@ """ -40. Tests for select_related() +41. Tests for select_related() ``select_related()`` follows all relationships and pre-caches any foreign key values so that complex trees can be fetched in a single query. However, this diff --git a/tests/modeltests/serializers/models.py b/tests/modeltests/serializers/models.py index a2388223f0..1c7dbabfd1 100644 --- a/tests/modeltests/serializers/models.py +++ b/tests/modeltests/serializers/models.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- """ -41. Serialization +42. Serialization ``django.core.serializers`` provides interfaces to converting Django querysets to and from "flat" data (i.e. strings). diff --git a/tests/modeltests/test_client/models.py b/tests/modeltests/test_client/models.py index c7aaaff67d..1a6e1bdc18 100644 --- a/tests/modeltests/test_client/models.py +++ b/tests/modeltests/test_client/models.py @@ -1,6 +1,6 @@ # coding: utf-8 """ -38. Testing using the Test Client +39. Testing using the Test Client The test client is a class that can act like a simple browser for testing purposes. diff --git a/tests/modeltests/user_commands/models.py b/tests/modeltests/user_commands/models.py index 5f96806dac..6db4b049df 100644 --- a/tests/modeltests/user_commands/models.py +++ b/tests/modeltests/user_commands/models.py @@ -1,5 +1,5 @@ """ -37. User-registered management commands +38. User-registered management commands The manage.py utility provides a number of useful commands for managing a Django project. If you want to add a utility command of your own, you can. @@ -27,4 +27,4 @@ Traceback (most recent call last): CommandError: Unknown command: 'explode' -"""} \ No newline at end of file +"""}