Skip to content

Commit

Permalink
Fixed a couple of small documentation typos.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ramiro committed Apr 22, 2011
1 parent abc1e92 commit 13cfdb0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/ref/contrib/humanize.txt
Expand Up @@ -101,7 +101,7 @@ Examples (when 'now' is 17 Feb 2007 16:30:00):
* ``17 Feb 2007 16:29:31`` becomes ``29 seconds ago``. * ``17 Feb 2007 16:29:31`` becomes ``29 seconds ago``.
* ``17 Feb 2007 16:29:00`` becomes ``a minute ago``. * ``17 Feb 2007 16:29:00`` becomes ``a minute ago``.
* ``17 Feb 2007 16:25:35`` becomes ``4 minutes ago``. * ``17 Feb 2007 16:25:35`` becomes ``4 minutes ago``.
* ``17 Feb 2007 15:30:29`` becomes ``an hours ago``. * ``17 Feb 2007 15:30:29`` becomes ``an hour ago``.
* ``17 Feb 2007 13:31:29`` becomes ``2 hours ago``. * ``17 Feb 2007 13:31:29`` becomes ``2 hours ago``.
* ``16 Feb 2007 13:31:29`` becomes ``yesterday``. * ``16 Feb 2007 13:31:29`` becomes ``yesterday``.
* Any other day is formatted according to given argument or the * Any other day is formatted according to given argument or the
Expand Down
2 changes: 1 addition & 1 deletion docs/ref/request-response.txt
Expand Up @@ -497,7 +497,7 @@ hard-coded strings. If you use this technique, follow these guidelines:


* The iterator should return strings. * The iterator should return strings.
* If an :class:`HttpResponse` has been initialized with an iterator as its * If an :class:`HttpResponse` has been initialized with an iterator as its
content, you can't use the class:`HttpResponse` instance as a file-like content, you can't use the :class:`HttpResponse` instance as a file-like
object. Doing so will raise ``Exception``. object. Doing so will raise ``Exception``.


Setting headers Setting headers
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/db/queries.txt
Expand Up @@ -75,7 +75,7 @@ The ``save()`` method has no return value.
``save()`` takes a number of advanced options not described here. ``save()`` takes a number of advanced options not described here.
See the documentation for ``save()`` for complete details. See the documentation for ``save()`` for complete details.


To create an object and save it all in one step see the ```create()``` To create an object and save it all in one step see the ``create()``
method. method.


Saving changes to objects Saving changes to objects
Expand Down Expand Up @@ -572,7 +572,7 @@ issue the query::
For date and date/time fields, you can add or subtract a ``datetime.timedelta`` For date and date/time fields, you can add or subtract a ``datetime.timedelta``
object. The following would return all entries that were modified more than 3 days object. The following would return all entries that were modified more than 3 days
after they were published:: after they were published::

>>> from datetime import timedelta >>> from datetime import timedelta
>>> Entry.objects.filter(mod_date__gt=F('pub_date') + timedelta(days=3)) >>> Entry.objects.filter(mod_date__gt=F('pub_date') + timedelta(days=3))


Expand Down

0 comments on commit 13cfdb0

Please sign in to comment.