From f93700927f77960621f2bb1574f047b2894b4917 Mon Sep 17 00:00:00 2001 From: Dave Gaeddert Date: Sun, 14 Jan 2024 11:03:03 -0600 Subject: [PATCH] Remove form.has_changed --- bolt/forms/forms.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bolt/forms/forms.py b/bolt/forms/forms.py index 1fe6a18370..2c6d6c5b8d 100644 --- a/bolt/forms/forms.py +++ b/bolt/forms/forms.py @@ -214,10 +214,6 @@ def full_clean(self): if not self.is_bound: # Stop further processing. return self.cleaned_data = {} - # If the form is permitted to be empty, and none of the form data has - # changed from the initial data, short circuit any validation. - if not self.has_changed(): - return self._clean_fields() self._clean_form() @@ -276,10 +272,6 @@ def clean(self): """ return self.cleaned_data - def has_changed(self): - """Return True if data differs from initial.""" - return bool(self.changed_data) - @cached_property def changed_data(self): return [name for name, bf in self._bound_items() if bf._has_changed()]