Author: zain
Date: 2009-12-21 20:31:45 -0600 (Mon, 21 Dec 2009)
New Revision: 11936

Modified:
   django/branches/soc2009/admin-ui/django/forms/formsets.py
Log:
[soc2009/admin-ui] self.is_valid -> self.is_valid()


Modified: django/branches/soc2009/admin-ui/django/forms/formsets.py
===================================================================
--- django/branches/soc2009/admin-ui/django/forms/formsets.py   2009-12-22 
01:28:58 UTC (rev 11935)
+++ django/branches/soc2009/admin-ui/django/forms/formsets.py   2009-12-22 
02:31:45 UTC (rev 11936)
@@ -148,7 +148,7 @@
         Returns a list of forms that have been marked for deletion. Raises an
         AttributeError if deletion is not allowed.
         """
-        if not self.is_valid or not self.can_delete:
+        if not self.is_valid() or not self.can_delete:
             raise AttributeError("'%s' object has no attribute 
'deleted_forms'" % self.__class__.__name__)
         # construct _deleted_form_indexes which is just a list of form indexes
         # that have had their deletion widget set to True
@@ -169,7 +169,7 @@
         Returns a list of form in the order specified by the incoming data.
         Raises an AttributeError if ordering is not allowed.
         """
-        if not self.is_valid or not self.can_order:
+        if not self.is_valid() or not self.can_order:
             raise AttributeError("'%s' object has no attribute 
'ordered_forms'" % self.__class__.__name__)
         # Construct _ordering, which is a list of (form_index, 
order_field_value)
         # tuples. After constructing this list, we'll sort it by 
order_field_value

--

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