Re: Runtime error

2017-11-09 Thread Jonas H
Not sure if this is what's meant by the first post, but I got very confused the other day by the ./runtests.py script: If you run ./runtests.py ../tests/foo, it crashes with all sorts of "X doesn't declare explicit app label" exceptions. If you run ./runtests.py foo, it works. Not sure why I e

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
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 w

#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