Skip to content

Commit

Permalink
Remove form.has_changed
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jan 14, 2024
1 parent 1378347 commit f937009
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bolt/forms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()]
Expand Down

0 comments on commit f937009

Please sign in to comment.