diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-08-18 06:35:28 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-08-18 06:35:28 +0000 |
| commit | 0ae4e102dc60de49d8f1457373458082f6639086 (patch) | |
| tree | f1bf9deaa3d24e3bdbc806b979ea092c2761386b | |
| parent | 549198b714ba0b032904639af0c388e739261fe6 (diff) | |
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
| -rw-r--r-- | AUTHORS | 1 | ||||
| -rw-r--r-- | django/newforms/formsets.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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> diff --git a/django/newforms/formsets.py b/django/newforms/formsets.py index 7637a093d9..38982b47de 100644 --- a/django/newforms/formsets.py +++ b/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 |
