Re: #28788: Add support for Model.clean_

2017-11-09 Thread Alasdair Nicol
On Thursday, 9 November 2017 16:57:22 UTC, Alasdair Nicol wrote: > > 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

Re: #28788: Add support for Model.clean_

2017-11-09 Thread Alasdair Nicol
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.clea

RE: #28788: Add support for Model.clean_

2017-11-09 Thread Matthew Pava
would certainly have issues with backwards compatibility. From: django-developers@googlegroups.com [mailto:django-developers@googlegroups.com] On Behalf Of Jonas Haag Sent: Thursday, November 9, 2017 4:04 AM To: django-developers@googlegroups.com Subject: #28788: Add support for Model.clean_ Hi

#28788: Add support for Model.clean_

2017-11-09 Thread Jonas Haag
Hi, I’m taking https://code.djangoproject.com/ticket/28788 to this mailing as per Tim’s request. I’m convinced we should add a Model.clean_ method, the model equivalent to Form.clean_. Form validation has forms.Field.validators, Form.clean, and F