From 75c1127eef23b32e787cd5dc97f7fa5ddb02bb9f Mon Sep 17 00:00:00 2001
From: David Smith <39445562+smithdc1@users.noreply.github.com>
Date: Wed, 12 Jan 2022 07:07:21 +0000
Subject: [PATCH] Alphabetized field attributes in form topic docs.
---
docs/topics/forms/index.txt | 56 ++++++++++++++++++-------------------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt
index 8ed99d5773..d87b9be8d6 100644
--- a/docs/topics/forms/index.txt
+++ b/docs/topics/forms/index.txt
@@ -640,15 +640,24 @@ loop:
Useful attributes on ``{{ field }}`` include:
-``{{ field.label }}``
- The label of the field, e.g. ``Email address``.
+``{{ field.errors }}``
+ Outputs a ``
`` containing any validation errors
+ corresponding to this field. You can customize the presentation of
+ the errors with a ``{% for error in field.errors %}`` loop. In this
+ case, each object in the loop is a string containing the error message.
-``{{ field.label_tag }}``
- The field's label wrapped in the appropriate HTML ``