Am 26.03.2015 um 15:12 schrieb Marc Tamlyn:
In particular it is worth noting the addition of form.add_error[1] in Django
1.7 which makes long clean methods much
nicer to handle.
[1]
https://docs.djangoproject.com/en/1.7/ref/forms/api/#django.forms.Form.add_error
Yes, you are right. My proposal could be implemented with a small second loop
over all fields.
Adding exceptions which get raised in the second run with form.add_error().
Nevertheless I think something like this would be nice to have in django core.
But in this moment, I will use the easy way: Write a loop in my code.
I withdraw the proposal. If someone likes to do it: go ahead, and ask
me and other for feedback :-)
Regards,
Thomas Güttler
--
Thomas Güttler
http://thomas-guettler.de/
--
You received this message because you are subscribed to the Google Groups "Django
developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/55251CFA.4060000%40tbz-pariv.de.
For more options, visit https://groups.google.com/d/optout.