Anonymous avatar Anonymous committed 675d6f2

Fixed #8788: fixed a few typoes in [8805]. Thanks, Matthew Flanagan and mir.

Comments (0)

Files changed (2)

django/forms/models.py

             except FieldDoesNotExist:
                 # This is an extra field that's not on the ModelForm, ignore it
                 continue
-            # MySQL can't handle ... WHERE pk IS NULL, so make sure we don't 
+            # MySQL can't handle ... WHERE pk IS NULL, so make sure we
             # don't generate queries of that form.
             is_null_pk = f.primary_key and self.cleaned_data[name] is None
             if name in self.cleaned_data and f.unique and not is_null_pk:
             if self.instance.pk is not None:
                 qs = qs.exclude(pk=self.instance.pk)
                 
-            # This cute trick with extra/values is the most efficiant way to
+            # This cute trick with extra/values is the most efficient way to
             # tell if a particular query returns any results.
             if qs.extra(select={'a': 1}).values('a').order_by():
                 model_name = capfirst(self.instance._meta.verbose_name)

docs/topics/forms/modelforms.txt

 Overriding the clean() method
 -----------------------------
 
-You can overide the ``clean()`` method on a model form to provide additional
-validation in the same way you can on a normal form.  However, by default the
+You can override the ``clean()`` method on a model form to provide additional
+validation in the same way you can on a normal form. However, by default the
 ``clean()`` method validates the uniqueness of fields that are marked as unique
-on the model, and those marked as unque_together, if you would like to overide
-the ``clean()`` method and maintain the default validation you must call the
+or unique_together on the model. Therefore, if you would like to override
+the ``clean()`` method and maintain the default validation, you must call the
 parent class's ``clean()`` method.
 
 Form inheritance
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.