Add heading option to panels reference

pull/5896/head
jacobtoppm 2020-03-03 16:11:32 +00:00 zatwierdzone przez Matt Westcott
rodzic 75597f4527
commit 12d5edcef6
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ Available panel types
FieldPanel
----------
.. class:: FieldPanel(field_name, classname=None, widget=None)
.. class:: FieldPanel(field_name, classname=None, widget=None, heading='')
This is the panel used for basic Django field types.
@ -28,6 +28,10 @@ FieldPanel
This parameter allows you to specify a :doc:`Django form widget <django:ref/forms/widgets>` to use instead of the default widget for this field type.
.. attribute:: FieldPanel.heading (optional)
This allows you to override the heading for the panel, which will otherwise be set automatically using the form field's label (taken in turn from a model field's ``verbose_name``).
StreamFieldPanel
----------------