Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 authored February 22, 2009
9  docs/ref/models/fields.txt
@@ -270,6 +270,15 @@ respect to the month.
270 270
 
271 271
 Like :attr:`~Field.unique_for_date` and :attr:`~Field.unique_for_month`.
272 272
 
  273
+``verbose_name``
  274
+-------------------
  275
+
  276
+.. attribute:: Field.verbose_name
  277
+
  278
+A human-readable name for the field. If the verbose name isn't given, Django
  279
+will automatically create it using the field's attribute name, converting
  280
+underscores to spaces. See :ref:`Verbose field names <verbose-field-names>`.
  281
+
273 282
 .. _model-field-types:
274 283
 
275 284
 Field types
2  docs/topics/db/models.txt
@@ -218,6 +218,8 @@ sees you've explicitly set :attr:`Field.primary_key`, it won't add the automatic
218 218
 Each model requires exactly one field to have :attr:`primary_key=True
219 219
 <Field.primary_key>`.
220 220
 
  221
+.. _verbose-field-names:
  222
+
221 223
 Verbose field names
222 224
 -------------------
223 225
 

0 notes on commit 16f05e7

Please sign in to comment.
Something went wrong with that request. Please try again.