Re: Model Validation - Best practices

2007-11-15 Thread eriku777
Does anyone know if the Model class validate() method will be ready any time soon? I am trying to learn Django but don't want to spend a lot of time hacking save() work-arounds if new core features will resolve the issue of business logic validation within models. -- Eric -- On Oct 24, 12:11 am

Re: Model Validation - Best practices

2007-11-11 Thread [EMAIL PROTECTED]
On Nov 11, 4:51 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-11-11 at 23:30 +, [EMAIL PROTECTED] wrote: > > > > At the moment this is work in progress. There is some development going > > > on to finish upmodel-awarevalidationand complete some earlier work > > > onmodelv

Re: Model Validation - Best practices

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 23:30 +, [EMAIL PROTECTED] wrote: > > > > > At the moment this is work in progress. There is some development going > > on to finish upmodel-awarevalidationand complete some earlier work > > onmodelvalidation. At that time, you'll be able to call > > my_model.validate(

Re: Model Validation - Best practices

2007-11-11 Thread [EMAIL PROTECTED]
> > At the moment this is work in progress. There is some development going > on to finish upmodel-awarevalidationand complete some earlier work > onmodelvalidation. At that time, you'll be able to call > my_model.validate() and have things work similarly to how they do with > newforms. are the

Re: Model Validation - Best practices

2007-10-31 Thread Malcolm Tredinnick
On Wed, 2007-10-31 at 18:05 -0700, Ken wrote: > > > On Oct 31, 6:07 pm, Ken <[EMAIL PROTECTED]> wrote: > > > > > I have a similar thing I wish to accomplish. It's not quite model > > validation, rather model completion. The form provides a field that > > fills one model field but has to be mu

Re: Model Validation - Best practices

2007-10-31 Thread Ken
On Oct 31, 6:07 pm, Ken <[EMAIL PROTECTED]> wrote: > > I have a similar thing I wish to accomplish. It's not quite model > validation, rather model completion. The form provides a field that > fills one model field but has to be munged to fill a second model > field. I thought the appropriat

Re: Model Validation - Best practices

2007-10-31 Thread Ken
On Oct 24, 12:11 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > In the interim, doing things in the save() method is possible, although > it's not a brilliantly nice design, since save() should never > raisevalidationerrors and, if it does, you won't get feedback to, say, the > admin inte

Re: Model Validation - Best practices

2007-10-23 Thread Malcolm Tredinnick
On Wed, 2007-10-24 at 04:40 +, Camo wrote: > Hi Guys, > > I just been working my way through Django, top framework by the way. > > Anyways I just wondering if any one can shed some light model > validation, > > It seems the only validations are either through the newforms or > simple valida

Re: Model Validation - Best practices

2007-10-23 Thread Kenneth Gonsalves
On 24-Oct-07, at 10:10 AM, Camo wrote: > So I was just wondering how people go about validating models. overide the save() method and add your own business rules in the model -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~--