On Jul 24, 10:37 am, Benjamin Wohlwend <piquad...@gmail.com> wrote:
> > if all(f.is_valid() for f in (form1, form2, form3)): > # ok, save > Oops, forgot to mention that I had to implement my own version of all (), which doesn't short cut: def really_all(iter): all_true = True for val in iter: if not val: all_true = False return all_true --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. 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 -~----------~----~----~----~------~----~------~--~---