diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 48cc4222311..63018f66111 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 `. + .. _model-field-types: Field types diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index ddcd020f6d3..0c87cdc9d19 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -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 `. +.. _verbose-field-names: + Verbose field names -------------------