Ticket #9347: verbose_field_doc.diff

File verbose_field_doc.diff, 1.0 KB (added by Tim Graham, 16 years ago)

initial patch

  • docs/topics/db/models.txt

     
    218218Each model requires exactly one field to have :attr:`primary_key=True
    219219<Field.primary_key>`.
    220220
     221.. _verbose-field-names:
     222
    221223Verbose field names
    222224-------------------
    223225
  • docs/ref/models/fields.txt

     
    270270
    271271Like :attr:`~Field.unique_for_date` and :attr:`~Field.unique_for_month`.
    272272
     273``verbose_name``
     274-------------------
     275
     276.. attribute:: Field.verbose_name
     277
     278A 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>`.
     279
     280
    273281.. _model-field-types:
    274282
    275283Field types
Back to Top