diff options
| author | Gavin Wahl <gwahl@fusionbox.com> | 2013-03-28 11:16:53 -0600 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-03-29 08:00:24 -0400 |
| commit | d1b7bd030b1db111e1a3505b1fc029ab964382cc (patch) | |
| tree | d08f5efd105f0da4b098146c66a45811987c3152 | |
| parent | 149150deb128b1a5df8b5c1f8756abf589d53422 (diff) | |
[1.5.x] Fixed spelling errors
Backport of ec04fd1344 from master
| -rw-r--r-- | django/contrib/admin/options.py | 12 | ||||
| -rw-r--r-- | django/contrib/admin/sites.py | 2 | ||||
| -rw-r--r-- | django/db/models/base.py | 2 | ||||
| -rw-r--r-- | django/forms/formsets.py | 2 | ||||
| -rw-r--r-- | django/test/html.py | 2 | ||||
| -rw-r--r-- | django/utils/http.py | 2 | ||||
| -rw-r--r-- | docs/_ext/djangodocs.py | 2 | ||||
| -rw-r--r-- | docs/_ext/literals_to_xrefs.py | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index e08cd9c32f..6204e0b2c2 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -248,7 +248,7 @@ class BaseModelAdmin(six.with_metaclass(forms.MediaDefiningClass)): parts.pop() # Special case -- foo__id__exact and foo__id queries are implied - # if foo has been specificially included in the lookup list; so + # if foo has been specifically included in the lookup list; so # drop __id if it is the last part. However, first we need to find # the pk attribute name. rel_name = None @@ -256,7 +256,7 @@ class BaseModelAdmin(six.with_metaclass(forms.MediaDefiningClass)): try: field, _, _, _ = model._meta.get_field_by_name(part) except FieldDoesNotExist: - # Lookups on non-existants fields are ok, since they're ignored + # Lookups on non-existent fields are ok, since they're ignored # later. return True if hasattr(field, 'rel'): @@ -278,7 +278,7 @@ class BaseModelAdmin(six.with_metaclass(forms.MediaDefiningClass)): def has_add_permission(self, request): """ Returns True if the given request has permission to add an object. - Can be overriden by the user in subclasses. + Can be overridden by the user in subclasses. """ opts = self.opts return request.user.has_perm(opts.app_label + '.' + opts.get_add_permission()) @@ -289,7 +289,7 @@ class BaseModelAdmin(six.with_metaclass(forms.MediaDefiningClass)): Django model instance, the default implementation doesn't examine the `obj` parameter. - Can be overriden by the user in subclasses. In such case it should + Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the `obj` model instance. If `obj` is None, this should return True if the given request has permission to change *any* object of the given type. @@ -303,7 +303,7 @@ class BaseModelAdmin(six.with_metaclass(forms.MediaDefiningClass)): Django model instance, the default implementation doesn't examine the `obj` parameter. - Can be overriden by the user in subclasses. In such case it should + Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the `obj` model instance. If `obj` is None, this should return True if the given request has permission to delete *any* object of the given type. @@ -575,7 +575,7 @@ class ModelAdmin(BaseModelAdmin): Return a dictionary mapping the names of all actions for this ModelAdmin to a tuple of (callable, name, description) for each action. """ - # If self.actions is explicitally set to None that means that we don't + # If self.actions is explicitly set to None that means that we don't # want *any* actions enabled on this page. from django.contrib.admin.views.main import IS_POPUP_VAR if self.actions is None or IS_POPUP_VAR in request.GET: diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py index 72e0b9aea5..ab76a8b06e 100644 --- a/django/contrib/admin/sites.py +++ b/django/contrib/admin/sites.py @@ -129,7 +129,7 @@ class AdminSite(object): def get_action(self, name): """ - Explicitally get a registered global action wheather it's enabled or + Explicitly get a registered global action whether it's enabled or not. Raises KeyError for invalid names. """ return self._global_actions[name] diff --git a/django/db/models/base.py b/django/db/models/base.py index a58761b643..4b0da16a50 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -895,7 +895,7 @@ class Model(six.with_metaclass(ModelBase)): def full_clean(self, exclude=None): """ Calls clean_fields, clean, and validate_unique, on the model, - and raises a ``ValidationError`` for any errors that occured. + and raises a ``ValidationError`` for any errors that occurred. """ errors = {} if exclude is None: diff --git a/django/forms/formsets.py b/django/forms/formsets.py index 84a28552bb..a5629eb4c1 100644 --- a/django/forms/formsets.py +++ b/django/forms/formsets.py @@ -111,7 +111,7 @@ class BaseFormSet(object): if self.is_bound: return self.management_form.cleaned_data[INITIAL_FORM_COUNT] else: - # Use the length of the inital data if it's there, 0 otherwise. + # Use the length of the initial data if it's there, 0 otherwise. initial_forms = self.initial and len(self.initial) or 0 if initial_forms > self.max_num >= 0: initial_forms = self.max_num diff --git a/django/test/html.py b/django/test/html.py index cda9dfab27..0d30bd2d1c 100644 --- a/django/test/html.py +++ b/django/test/html.py @@ -222,7 +222,7 @@ def parse_html(html): """ Takes a string that contains *valid* HTML and turns it into a Python object structure that can be easily compared against other HTML on semantic - equivilance. Syntactical differences like which quotation is used on + equivalence. Syntactical differences like which quotation is used on arguments will be ignored. """ diff --git a/django/utils/http.py b/django/utils/http.py index 0ab5198804..3c60e2f159 100644 --- a/django/utils/http.py +++ b/django/utils/http.py @@ -217,7 +217,7 @@ def parse_etags(etag_str): def quote_etag(etag): """ - Wraps a string in double quotes escaping contents as necesary. + Wraps a string in double quotes escaping contents as necessary. """ return '"%s"' % etag.replace('\\', '\\\\').replace('"', '\\"') diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 6c0e1892f4..44d0547a29 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -120,7 +120,7 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator): # which is a bit less obvious that I'd like. # # FIXME: these messages are all hardcoded in English. We need to change - # that to accomodate other language docs, but I can't work out how to make + # that to accommodate other language docs, but I can't work out how to make # that work. # version_text = { diff --git a/docs/_ext/literals_to_xrefs.py b/docs/_ext/literals_to_xrefs.py index d7b3cfc549..6feeca992e 100644 --- a/docs/_ext/literals_to_xrefs.py +++ b/docs/_ext/literals_to_xrefs.py @@ -110,7 +110,7 @@ def fixliterals(fname): # # The following is taken from django.utils.termcolors and is copied here to -# avoid the dependancy. +# avoid the dependency. # |
