Code

Ticket #8788: typos.diff

File typos.diff, 1.6 KB (added by Matthew Flanagan <mattimustang@…>, 6 years ago)

"proper" patch

Line 
1Index: django/forms/models.py
2===================================================================
3--- django/forms/models.py      (revision 8831)
4+++ django/forms/models.py      (working copy)
5@@ -244,7 +244,7 @@
6             if self.instance.pk is not None:
7                 qs = qs.exclude(pk=self.instance.pk)
8
9-            # This cute trick with extra/values is the most efficiant way to
10+            # This cute trick with extra/values is the most efficient way to
11             # tell if a particular query returns any results.
12             if qs.extra(select={'a': 1}).values('a').order_by():
13                 model_name = capfirst(self.instance._meta.verbose_name)
14Index: docs/topics/forms/modelforms.txt
15===================================================================
16--- docs/topics/forms/modelforms.txt    (revision 8831)
17+++ docs/topics/forms/modelforms.txt    (working copy)
18@@ -337,10 +337,10 @@
19 Overriding the clean() method
20 -----------------------------
21
22-You can overide the ``clean()`` method on a model form to provide additional
23+You can override the ``clean()`` method on a model form to provide additional
24 validation in the same way you can on a normal form.  However, by default the
25 ``clean()`` method validates the uniqueness of fields that are marked as unique
26-on the model, and those marked as unque_together, if you would like to overide
27+on the model, and those marked as unique_together, if you would like to override
28 the ``clean()`` method and maintain the default validation you must call the
29 parent class's ``clean()`` method.
30