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
This commit is contained in:
parent
6875fd6389
commit
a72324bf7f
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
||||
"""}
|
||||
"""}
|
||||
|
|
Loading…
Reference in New Issue