Author: russellm
Date: 2009-12-22 10:10:48 -0600 (Tue, 22 Dec 2009)
New Revision: 11956
Modified:
django/trunk/docs/howto/custom-model-fields.txt
django/trunk/docs/topics/db/multi-db.txt
Log:
Documentation markup fixes.
Modified: django/trunk/docs/howto/custom-model-fields.txt
===================================================================
--- django/trunk/docs/howto/custom-model-fields.txt 2009-12-22 16:00:49 UTC
(rev 11955)
+++ django/trunk/docs/howto/custom-model-fields.txt 2009-12-22 16:10:48 UTC
(rev 11956)
@@ -458,7 +458,7 @@
.. method:: get_db_prep_value(self, value, connection, prepared=False)
.. versionadded:: 1.2
- The ``connection`` and ``prepared arguments were added to support multiple
databases.
+ The ``connection`` and ``prepared`` arguments were added to support
multiple databases.
Some data types (for example, dates) need to be in a specific format
before they can be used by a database backend.
Modified: django/trunk/docs/topics/db/multi-db.txt
===================================================================
--- django/trunk/docs/topics/db/multi-db.txt 2009-12-22 16:00:49 UTC (rev
11955)
+++ django/trunk/docs/topics/db/multi-db.txt 2009-12-22 16:10:48 UTC (rev
11956)
@@ -28,8 +28,10 @@
The following is an example ``settings.py`` snippet defining two
databases - a default Postgres database, and a MySQL database called
-``users``::
+``users``:
+.. code-block:: python
+
DATABASES = {
'default': {
'NAME': 'app_data',
@@ -56,8 +58,10 @@
during it's construction. To choose the database that a query will be
preformed against simply call the ``using()`` method on the
``QuerySet``. ``using()`` takes a single argument: the alias of the
-database on which you want to run the query. For example::
+database on which you want to run the query. For example:
+.. code-block:: python
+
# This will run on the 'default' database...
>>> Author.objects.all()
# So will this...
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.