summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-11-07 19:07:27 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-11-07 19:07:27 +0000
commita84404c190f1d3e9d507faf8031c98517c4c4466 (patch)
tree448e497c7143891493cfe9cc913afcfcce330afb /docs
parent6f164ad4856a1a5431b3b3e19ab6dbafe692a52d (diff)
Formatting fixes from the past round of checkins
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/forms.txt8
-rw-r--r--docs/templates.txt10
2 files changed, 9 insertions, 9 deletions
diff --git a/docs/forms.txt b/docs/forms.txt
index 1c683c44f7..ff192a4717 100644
--- a/docs/forms.txt
+++ b/docs/forms.txt
@@ -611,13 +611,13 @@ fails. If no message is passed in, a default message is used.
string comparison here, you will need to write your own validator.
``NumberIsInRange``
- Takes two boundary number, ``lower`` and ``upper`` and checks that the
+ Takes two boundary numbers, ``lower`` and ``upper``, and checks that the
field is greater than ``lower`` (if given) and less than ``upper`` (if
given).
- Both checks are inclusive; that is, ``NumberIsInRange(10, 20)`` will allow
- values of both 10 and 20. This validator only checks numeric fields
- (i.e. floats and integer fields).
+ Both checks are inclusive. That is, ``NumberIsInRange(10, 20)`` will allow
+ values of both 10 and 20. This validator only checks numeric values
+ (e.g., float and integer values).
``IsAPowerOf``
Takes an integer argument and when called as a validator, checks that the
diff --git a/docs/templates.txt b/docs/templates.txt
index cb06fa27d9..46040c6972 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -538,14 +538,14 @@ The 'ifchanged' block tag is used within a loop. It has two possible uses.
<a href="{{ date|date:"M/d"|lower }}/">{{ date|date:"j" }}</a>
{% endfor %}
-2. If given a variable, check if that variable has changed. For example, the
- following shows the date every time it changes, but only shows the hour if both
- the hour and the date has changed::
+2. **New in Django development version.** If given a variable, check whether that
+ variable has changed. For example, the following shows the date every time it
+ changes, but only shows the hour if both the hour and the date has changed::
{% for date in days %}
- {% ifchanged date.date %} {{date.date}} {% endifchanged %}
+ {% ifchanged date.date %} {{ date.date }} {% endifchanged %}
{% ifchanged date.hour date.date %}
- {{date.hour}}
+ {{ date.hour }}
{% endifchanged %}
{% endfor %}