From 9a279edc1cedecc65249b061bcb2797fe509a85b Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 1 Apr 2011 16:18:23 +0000 Subject: Fixed some ReST errors from e-mail -> email change in docs, and changed some docs that shouldn't have been changed (because translation strings haven't been converted yet) git-svn-id: http://code.djangoproject.com/svn/django/trunk@15968 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/forms/api.txt | 10 +++++----- docs/ref/forms/fields.txt | 2 +- docs/ref/forms/validation.txt | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index bd8948cc08..070f9ef19a 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -105,7 +105,7 @@ Access the :attr:`~Form.errors` attribute to get a dictionary of error messages:: >>> f.errors - {'sender': [u'Enter a valid email address.'], 'subject': [u'This field is required.']} + {'sender': [u'Enter a valid e-mail address.'], 'subject': [u'This field is required.']} In this dictionary, the keys are the field names, and the values are lists of Unicode strings representing the error messages. The error messages are stored @@ -537,18 +537,18 @@ method you're using:: >>> print f.as_table() Subject: Message: - Sender: + Sender: Cc myself: >>> print f.as_ul()
  • Subject:
  • Message:
  • -
  • Sender:
  • +
  • Sender:
  • Cc myself:
  • >>> print f.as_p()

    Subject:

    Message:

    -

    +

    Sender:

    Cc myself:

    @@ -571,7 +571,7 @@ pass that in at construction time::
    This field is required.

    Subject:

    Message:

    -
    Enter a valid email address.
    +
    Enter a valid e-mail address.

    Sender:

    Cc myself:

    diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 73d8b02869..338a80655e 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -30,7 +30,7 @@ exception or returns the clean value:: >>> f.clean('invalid email address') Traceback (most recent call last): ... - ValidationError: [u'Enter a valid email address.'] + ValidationError: [u'Enter a valid e-mail address.'] Core field arguments -------------------- diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt index d8f896deb2..23aa27d985 100644 --- a/docs/ref/forms/validation.txt +++ b/docs/ref/forms/validation.txt @@ -187,7 +187,7 @@ a look at Django's ``EmailField``:: class EmailField(CharField): default_error_messages = { - 'invalid': _(u'Enter a valid email address.'), + 'invalid': _(u'Enter a valid e-mail address.'), } default_validators = [validators.validate_email] @@ -200,7 +200,7 @@ on field definition so:: is equivalent to:: email = forms.CharField(validators=[validators.validate_email], - error_messages={'invalid': _(u'Enter a valid email address.')}) + error_messages={'invalid': _(u'Enter a valid e-mail address.')}) Form field default cleaning -- cgit v1.3