Hi.

I've got a django app using an inline formset.

It was all working nicely, but I want to add some validation such that the 
inline formset must contain at least one valid record. This seems to be 
surprisingly hard to do.

I've tried overriding clean() on the formset and looking at things like 
self.form, is_valid(), and so on, but I can't work out anything that will 
let me know the number of database records that will be present when the 
formset is saved.

Am I missing anything obvious? How could I do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/wols1d5EPegJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to