diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-02-22 07:19:26 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-02-22 07:19:26 +0000 |
| commit | 16f05e78f178d337ff0b801740e571c70d60d757 (patch) | |
| tree | d0e9bad6acaeacf8f1870b1369499b4f1b45b118 /docs/ref/models | |
| parent | d12ee872a1d3e62ce1af47f72d6d60da61ac68f0 (diff) | |
[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
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/fields.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 48cc422231..63018f6611 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -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 |
