mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -213,7 +213,7 @@ class BaseFormSet(StrAndUnicode):
|
||||
return (1, 0) # +infinity, larger than any number
|
||||
return (0, k[1])
|
||||
self._ordering.sort(key=compare_ordering_key)
|
||||
# Return a list of form.cleaned_data dicts in the order spcified by
|
||||
# Return a list of form.cleaned_data dicts in the order specified by
|
||||
# the form data.
|
||||
return [self.forms[i[0]] for i in self._ordering]
|
||||
ordered_forms = property(_get_ordered_forms)
|
||||
|
||||
@@ -117,7 +117,7 @@ def model_to_dict(instance, fields=None, exclude=None):
|
||||
if exclude and f.name in exclude:
|
||||
continue
|
||||
if isinstance(f, ManyToManyField):
|
||||
# If the object doesn't have a primry key yet, just use an empty
|
||||
# If the object doesn't have a primary key yet, just use an empty
|
||||
# list for its m2m fields. Calling f.value_from_object will raise
|
||||
# an exception.
|
||||
if instance.pk is None:
|
||||
@@ -288,7 +288,7 @@ class BaseModelForm(BaseForm):
|
||||
# Exclude empty fields that are not required by the form, if the
|
||||
# underlying model field is required. This keeps the model field
|
||||
# from raising a required error. Note: don't exclude the field from
|
||||
# validaton if the model field allows blanks. If it does, the blank
|
||||
# validation if the model field allows blanks. If it does, the blank
|
||||
# value may be included in a unique check, so cannot be excluded
|
||||
# from validation.
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user