From 9d6551204eff9d1ab70b67578f99630716df7490 Mon Sep 17 00:00:00 2001 From: areski Date: Mon, 18 Aug 2014 16:30:44 +0200 Subject: Removed unnecessary code-block directives. --- docs/ref/forms/widgets.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index fe5920eee3..a2245a5ffa 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -198,7 +198,7 @@ foundation for custom widgets. A dictionary containing HTML attributes to be set on the rendered widget. - .. code-block:: python + .. code-block:: pycon >>> from django import forms >>> name = forms.TextInput(attrs={'size': 10, 'title': 'Your name',}) @@ -772,9 +772,7 @@ Composite widgets An optional dict of months to use in the "months" select box. The keys of the dict correspond to the month number (1-indexed) and - the values are the displayed months. - - .. code-block:: python + the values are the displayed months:: MONTHS = { 1:_('jan'), 2:_('feb'), 3:_('mar'), 4:_('apr'), -- cgit v1.3