Commit 78623d25 authored by Tomasz Wysocki's avatar Tomasz Wysocki Committed by Tim Graham
Browse files

Removed casting to bool just before negation.

parent cd914e31
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ class BaseForm(object):
        Returns True if the form has no errors. Otherwise, False. If errors are
        being ignored, returns False.
        """
        return self.is_bound and not bool(self.errors)
        return self.is_bound and not self.errors

    def add_prefix(self, field_name):
        """
+1 −1
Original line number Diff line number Diff line
@@ -308,7 +308,7 @@ class BaseFormSet(object):
                    # should not cause the entire formset to be invalid.
                    continue
            forms_valid &= form.is_valid()
        return forms_valid and not bool(self.non_form_errors())
        return forms_valid and not self.non_form_errors()

    def full_clean(self):
        """