Skip to content

Commit

Permalink
Fix cleaned data to only look at valid forms
Browse files Browse the repository at this point in the history
  • Loading branch information
julianandrews committed Oct 2, 2015
1 parent 674121d commit 4effd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betterforms/multiform.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def visible_fields(self):
def cleaned_data(self):
return OrderedDict(
(key, form.cleaned_data)
for key, form in self.forms.items()
for key, form in self.forms.items() if form.is_valid()
)


Expand Down

0 comments on commit 4effd43

Please sign in to comment.