Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

newforms-admin: Fixed #5199 -- Corrected is_bound logic for formsets.…

… Well spotted, David Blewett <david@dawninglight.net>.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@5931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0ae4e102dc60de49d8f1457373458082f6639086 1 parent 549198b
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  AUTHORS
  2. +1 −1  django/newforms/formsets.py
View
1  AUTHORS
@@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better:
Ben <afternoon@uk2.net>
Paul Bissex <http://e-scribe.com/>
Simon Blanchard
+ David Blewett <david@dawninglight.net>
Matt Boersma <ogghead@gmail.com>
boobsd@gmail.com
Andrew Brehaut <http://brehaut.net/blog>
View
2  django/newforms/formsets.py
@@ -21,7 +21,7 @@ class BaseFormSet(object):
"""A collection of instances of the same Form class."""
def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None, initial=None):
- self.is_bound = data is not None and files is not None
+ self.is_bound = data is not None or files is not None
self.prefix = prefix or 'form'
self.auto_id = auto_id
self.data = data
Please sign in to comment.
Something went wrong with that request. Please try again.