We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185c346 commit 4ec18b7Copy full SHA for 4ec18b7
plain/plain/forms/forms.py
@@ -203,7 +203,8 @@ def __iter__(self):
203
self._errors[field].extend(error_list)
204
205
# The field had an error, so removed it from the final data
206
- if field in self.cleaned_data:
+ # (we use getattr here so errors can be added to uncleaned forms)
207
+ if field in getattr(self, "cleaned_data", {}):
208
del self.cleaned_data[field]
209
210
def full_clean(self):
0 commit comments