﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10828	deleting all forms within a formset is not possible	Patrick Kranzlmueller	nobody	"when using a formset with can_delete and trying to delete _all_ items within the formset, I´m getting this error:
'MyForm' object has no attribute 'cleaned_data'

the problem here seems to be that formset.is_valid() is True, but cleaned_data (which is used afterwards, of course) is not available.
this could be solved with using a custom BaseFormSet and overriding the clean-method. unfortunately, the clean-method is not called in the case where all items are deleted.

I´ve done a bit of research on this issue and I found this related topic:
http://groups.google.com/group/django-developers/msg/b11309999f1b3e06

although I think it´s a pretty good idea that deleted items don´t throw validation errors, I´m not sure if the above behaviour is intended."	Bug	closed	Forms	dev	Normal	fixed		Vlastimil Zíma	Accepted	1	1	0	0	0	0
