Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.0.X] Fixed #9347 -- Added an entry in the field reference for the …

…verbose_name option. Thanks to marcoberi for the suggestion, and timo for the eventual patch.

Merge of r9865 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 16f05e78f178d337ff0b801740e571c70d60d757 1 parent d12ee87
Russell Keith-Magee freakboy3742 authored
Showing with 11 additions and 0 deletions.
  1. +9 −0 docs/ref/models/fields.txt
  2. +2 −0  docs/topics/db/models.txt
9 docs/ref/models/fields.txt
View
@@ -270,6 +270,15 @@ respect to the month.
Like :attr:`~Field.unique_for_date` and :attr:`~Field.unique_for_month`.
+``verbose_name``
+-------------------
+
+.. attribute:: Field.verbose_name
+
+A human-readable name for the field. If the verbose name isn't given, Django
+will automatically create it using the field's attribute name, converting
+underscores to spaces. See :ref:`Verbose field names <verbose-field-names>`.
+
.. _model-field-types:
Field types
2  docs/topics/db/models.txt
View
@@ -218,6 +218,8 @@ sees you've explicitly set :attr:`Field.primary_key`, it won't add the automatic
Each model requires exactly one field to have :attr:`primary_key=True
<Field.primary_key>`.
+.. _verbose-field-names:
+
Verbose field names
-------------------
Please sign in to comment.
Something went wrong with that request. Please try again.