Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #686 from skrr/ticket_19703

Fixed #19703 -- Typo in get_declared_fields docstring
  • Loading branch information...
commit 5b4805ae2bbc14b159e3bfd84e78eb9189ffa6eb 2 parents 3895ebc + 52533a6
Claude Paroz authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/forms/forms.py
4  django/forms/forms.py
@@ -32,12 +32,12 @@ def get_declared_fields(bases, attrs, with_base_fields=True):
32 32
     """
33 33
     Create a list of form field instances from the passed in 'attrs', plus any
34 34
     similar fields on the base classes (in 'bases'). This is used by both the
35  
-    Form and ModelForm metclasses.
  35
+    Form and ModelForm metaclasses.
36 36
 
37 37
     If 'with_base_fields' is True, all fields from the bases are used.
38 38
     Otherwise, only fields in the 'declared_fields' attribute on the bases are
39 39
     used. The distinction is useful in ModelForm subclassing.
40  
-    Also integrates any additional media definitions
  40
+    Also integrates any additional media definitions.
41 41
     """
42 42
     fields = [(field_name, attrs.pop(field_name)) for field_name, obj in list(six.iteritems(attrs)) if isinstance(obj, Field)]
43 43
     fields.sort(key=lambda x: x[1].creation_counter)

0 notes on commit 5b4805a

Please sign in to comment.
Something went wrong with that request. Please try again.