Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0c2a5ebe97c598be4e74f7d9ca6eff2e9af21b63 1 parent a50a188
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 0c2a5eb

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