Author: russellm
Date: 2009-02-22 00:10:29 -0600 (Sun, 22 Feb 2009)
New Revision: 9865

Modified:
   django/trunk/docs/ref/models/fields.txt
   django/trunk/docs/topics/db/models.txt
Log:
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.

Modified: django/trunk/docs/ref/models/fields.txt
===================================================================
--- django/trunk/docs/ref/models/fields.txt     2009-02-22 06:09:54 UTC (rev 
9864)
+++ django/trunk/docs/ref/models/fields.txt     2009-02-22 06:10:29 UTC (rev 
9865)
@@ -270,6 +270,15 @@
 
 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

Modified: django/trunk/docs/topics/db/models.txt
===================================================================
--- django/trunk/docs/topics/db/models.txt      2009-02-22 06:09:54 UTC (rev 
9864)
+++ django/trunk/docs/topics/db/models.txt      2009-02-22 06:10:29 UTC (rev 
9865)
@@ -218,6 +218,8 @@
 Each model requires exactly one field to have :attr:`primary_key=True
 <Field.primary_key>`.
 
+.. _verbose-field-names:
+
 Verbose field names
 -------------------
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to