I don’t use Field.validators much myself, but it seems that the Form clean method also calls Field.validators, so the redundancy is already there in the Form class. For consistency’s sake, I suggest we either add Model.clean_fieldname(), or we remove Form.clean_fieldname(). Both suggestions would certainly have issues with backwards compatibility.
--
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-develop...@googlegroups.com.
To post to this group, send email to
django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/D7A48F7D-0A60-4ADF-B210-F73FA1F0B717%40lophus.org.
For more options, visit https://groups.google.com/d/optout.
I don’t use Field.validators much myself, but it seems that the Form clean method also calls Field.validators, so the redundancy is already there in the Form class. For consistency’s sake, I suggest we either add Model.clean_fieldname(), or we remove Form.clean_fieldname(). Both suggestions would certainly have issues with backwards compatibility.
On Thursday, 9 November 2017 16:37:50 UTC, Matthew Pava wrote:I don’t use Field.validators much myself, but it seems that the Form clean method also calls Field.validators, so the redundancy is already there in the Form class. For consistency’s sake, I suggest we either add Model.clean_fieldname(), or we remove Form.clean_fieldname(). Both suggestions would certainly have issues with backwards compatibility.
I don't think that Form.clean_fieldname() shouldn't be removed.