Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Trivial comment change in ModelFormMetaclass to better reflect what w…

…e are doing.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c3b642187e7122f0277517815c5ffa297efc7944 1 parent 16928a7
@malcolmt malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/newforms/
4 django/newforms/
@@ -231,8 +231,8 @@ def __new__(cls, name, bases, attrs,
# If a model is defined, extract form fields from it.
fields = fields_for_model(opts.model, opts.fields,
opts.exclude, formfield_callback)
- # Fields defined on the base classes override local fields and are
- # always included.
+ # Override default model fields with any custom declared ones
+ # (plus, include all the other declared fields).
fields = declared_fields
Please sign in to comment.
Something went wrong with that request. Please try again.