Use `code-block:: python` for a code example in docs

pull/2575/merge
Tim Heap 2016-05-08 04:59:34 +02:00
rodzic d247fe9bf6
commit facd66cf82
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -117,7 +117,9 @@ PageChooserPanel
PageChooserPanel('related_page', 'demo.PublisherPage'),
]
``PageChooserPanel`` takes one required argument, the field name. Optionally, specifying a page type (in the form of an ``"appname.modelname"`` string) will filter the chooser to display only pages of that type. A list or tuple of page types can also be passed in, to allow choosing a page that matches any of those page types::
``PageChooserPanel`` takes one required argument, the field name. Optionally, specifying a page type (in the form of an ``"appname.modelname"`` string) will filter the chooser to display only pages of that type. A list or tuple of page types can also be passed in, to allow choosing a page that matches any of those page types:
.. code-block:: python
PageChooserPanel('related_page', ['demo.PublisherPage', 'demo.AuthorPage'])