summaryrefslogtreecommitdiff
path: root/docs/topics/forms
diff options
context:
space:
mode:
authorDominic Rodger <dominicrodger+github@gmail.com>2013-08-05 17:23:26 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2013-11-18 16:03:00 +0100
commita9c50fccf295d3ff8915588cd6442f1c70f1af9a (patch)
tree2b5a712b68e4b97d2edca6163b844087d42775f1 /docs/topics/forms
parent2b03d53438e7d54f754c58d8f148254a7a73ef5c (diff)
[1.6.x] Fixed #20852 - Fixed incorrectly generated left quotes in docs.
Sphinx generates left single quotes for apostrophes after code markup, when right single quotes are required. The easiest way to fix this is just by inserting the unicode character for a right single quote. Instances of the problem were found by looking for ">&#8216;" in the generated HTML. Backport of c33d1ca1d98003de29cdecb6080b52c5c52139bd from master.
Diffstat (limited to 'docs/topics/forms')
-rw-r--r--docs/topics/forms/modelforms.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index 543a5e11ba..8be945d690 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -392,7 +392,7 @@ these security concerns do not apply to you:
model = Author
fields = '__all__'
-2. Set the ``exclude`` attribute of the ``ModelForm``'s inner ``Meta`` class to
+2. Set the ``exclude`` attribute of the ``ModelForm``’s inner ``Meta`` class to
a list of fields to be excluded from the form.
For example::
@@ -768,7 +768,7 @@ Specifying widgets to use in the form with ``widgets``
.. versionadded:: 1.6
Using the ``widgets`` parameter, you can specify a dictionary of values to
-customize the ``ModelForm``'s widget class for a particular field. This
+customize the ``ModelForm``’s widget class for a particular field. This
works the same way as the ``widgets`` dictionary on the inner ``Meta``
class of a ``ModelForm`` works::