diff options
author | Zain Memon <zain@inzain.net> | 2009-12-22 02:31:45 +0000 |
---|---|---|
committer | Zain Memon <zain@inzain.net> | 2009-12-22 02:31:45 +0000 |
commit | a2015262406ba0a1f5b76d935fe80d494ca5c33d (patch) | |
tree | a99fec371b656a5a5c8fe5e52a4a173f49cc8da5 | |
parent | 7b2cdd0209df301285570b7678830c060d29c4d8 (diff) | |
download | django-soc2009/admin-ui.tar.gz |
[soc2009/admin-ui] self.is_valid -> self.is_valid()archive/soc2009/admin-uisoc2009/admin-ui
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/admin-ui@11936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r-- | django/forms/formsets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/forms/formsets.py b/django/forms/formsets.py index b0ca9435de..4555d111eb 100644 --- a/django/forms/formsets.py +++ b/django/forms/formsets.py @@ -148,7 +148,7 @@ class BaseFormSet(StrAndUnicode): 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 @@ class BaseFormSet(StrAndUnicode): 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 |