Author: russellm
Date: 2007-08-18 01:35:28 -0500 (Sat, 18 Aug 2007)
New Revision: 5931

Modified:
   django/branches/newforms-admin/AUTHORS
   django/branches/newforms-admin/django/newforms/formsets.py
Log:
newforms-admin: Fixed #5199 -- Corrected is_bound logic for formsets. Well 
spotted, David Blewett <[EMAIL PROTECTED]>.


Modified: django/branches/newforms-admin/AUTHORS
===================================================================
--- django/branches/newforms-admin/AUTHORS      2007-08-18 06:13:15 UTC (rev 
5930)
+++ django/branches/newforms-admin/AUTHORS      2007-08-18 06:35:28 UTC (rev 
5931)
@@ -62,6 +62,7 @@
     Ben <[EMAIL PROTECTED]>
     Paul Bissex <http://e-scribe.com/>
     Simon Blanchard
+    David Blewett <[EMAIL PROTECTED]>
     Matt Boersma <[EMAIL PROTECTED]>
     [EMAIL PROTECTED]
     Andrew Brehaut <http://brehaut.net/blog>

Modified: django/branches/newforms-admin/django/newforms/formsets.py
===================================================================
--- django/branches/newforms-admin/django/newforms/formsets.py  2007-08-18 
06:13:15 UTC (rev 5930)
+++ django/branches/newforms-admin/django/newforms/formsets.py  2007-08-18 
06:35:28 UTC (rev 5931)
@@ -21,7 +21,7 @@
     """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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to