From 52533a64d5866a3586dbfba69c6cb9e39bff7466 Mon Sep 17 00:00:00 2001 From: Simon Kerr Date: Wed, 30 Jan 2013 19:48:05 +0100 Subject: [PATCH] fixed minor typo #19703 --- django/forms/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/forms/forms.py b/django/forms/forms.py index 9c5dc3eb5c3..dccb12657e9 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -32,12 +32,12 @@ def get_declared_fields(bases, attrs, with_base_fields=True): """ Create a list of form field instances from the passed in 'attrs', plus any similar fields on the base classes (in 'bases'). This is used by both the - Form and ModelForm metclasses. + Form and ModelForm metaclasses. If 'with_base_fields' is True, all fields from the bases are used. Otherwise, only fields in the 'declared_fields' attribute on the bases are used. The distinction is useful in ModelForm subclassing. - Also integrates any additional media definitions + Also integrates any additional media definitions. """ fields = [(field_name, attrs.pop(field_name)) for field_name, obj in list(six.iteritems(attrs)) if isinstance(obj, Field)] fields.sort(key=lambda x: x[1].creation_counter)