Re: Acessing data on Model/Detail classes

2012-07-06 Thread Melvyn Sopacua
On 6-7-2012 17:14, Fabiano Martins wrote: > My idea was centralize the validation in the Model to allow use it on > several clients besides the primary Web page (such as a batch program, a > web service, etc.) Yes, and normally the clean() method is the right method, but ... > At this moment, the

Re: Acessing data on Model/Detail classes

2012-07-06 Thread Fabiano Martins
My idea was centralize the validation in the Model to allow use it on several clients besides the primary Web page (such as a batch program, a web service, etc.) At this moment, the database relationship yet not exists, but the "memory data relashionship" already exists. Conceptually I

Re: Acessing data on Model/Detail classes

2012-07-05 Thread Melvyn Sopacua
On 5-7-2012 21:46, Fabiano Martins wrote: > I'm novice on Django, and I have a problem that I can't resolve through > documentation. > > I like to make a validation on Model.clear() of the master class method based > on > data of your detail classes, but it returns always a empty set. > >

Acessing data on Model/Detail classes

2012-07-05 Thread Fabiano Martins
Hi, I'm novice on Django, and I have a problem that I can't resolve through documentation. I like to make a validation on Model.clear() of the master class method based on data of your detail classes, but it returns always a empty set. This example