Re: Django form validation.. does anyone else find it awkward??

2011-07-13 Thread Matteius
""" Devs: ALWAYS call model.full_clean() OR form.is_valid() to protect Database from radical or duplicate DB entries! * Calling model.full_clean() OR form.is_valid() calls 3 underlying methods (clean, clean_fields, validate_unique) """ I haven't had to do much with form validation beyond w

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Andre Terra
On Tue, Jul 12, 2011 at 2:25 PM, Venkatraman S wrote: > > > On Tue, Jul 12, 2011 at 9:12 PM, Andre Terra wrote: > >> May I ask if you are managing to do this (and, if so, how) without >>> writing duplicate logic? >>> >> >> This, to me, is a key area for improvement. Aside from the development >>

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Venkatraman S
On Tue, Jul 12, 2011 at 9:12 PM, Andre Terra wrote: > May I ask if you are managing to do this (and, if so, how) without >> writing duplicate logic? >> > > This, to me, is a key area for improvement. Aside from the development > challenge the idea imposes, an extra issue with writing DRY validati

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Cal Leeming [Simplicity Media Ltd]
Some interesting thoughts here. I once attempted to make a merge between Django validation and jQuery validation (spent several weeks on it), but my approach wasn't dynamic enough, and ended up not being used again. Personally, I'd like to see some sort of standardized JS library which works seaml

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Andre Terra
> > May I ask if you are managing to do this (and, if so, how) without > writing duplicate logic? > This, to me, is a key area for improvement. Aside from the development challenge the idea imposes, an extra issue with writing DRY validation for django and javascript is that the project doesn't of

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Derek
On Jul 12, 10:15 am, Venkatraman S wrote: > On Tue, Jul 12, 2011 at 1:23 PM, Cal Leeming [Simplicity Media Ltd] < > > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > On 12 Jul 2011 08:13, "bruno desthuilliers" > > wrote: > > > > On Jul 12, 3:37 am, Venkatraman S wrote: > > > > > On the valid

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Venkatraman S
On Tue, Jul 12, 2011 at 1:23 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > On 12 Jul 2011 08:13, "bruno desthuilliers" > wrote: > > > > On Jul 12, 3:37 am, Venkatraman S wrote: > > > > > > On the validation, yes, it is a little pesky. But, offlate, i am

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Cal Leeming [Simplicity Media Ltd]
On 12 Jul 2011 08:13, "bruno desthuilliers" wrote: > > On Jul 12, 3:37 am, Venkatraman S wrote: > > > > On the validation, yes, it is a little pesky. But, offlate, i am trying to > > *understand* it better and trying to move the logic > > to the client. For eg. jquery-validate does bulk of the st

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread bruno desthuilliers
On Jul 12, 3:37 am, Venkatraman S wrote: > > On the validation, yes, it is a little pesky. But, offlate, i am trying to > *understand* it better and trying to move the logic > to the client. For eg. jquery-validate does bulk of the stuff on client side > - atleast for required fields. So, moving >

Re: Django form validation.. does anyone else find it awkward??

2011-07-11 Thread Venkatraman S
On Tue, Jul 12, 2011 at 4:26 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Does anyone else find working with form validation in Django to be a bit > awkward and/or tedious? > > I can't say exactly why I don't like it, because I don't really know > myself,

Django form validation.. does anyone else find it awkward??

2011-07-11 Thread Cal Leeming [Simplicity Media Ltd]
Does anyone else find working with form validation in Django to be a bit awkward and/or tedious? I can't say exactly why I don't like it, because I don't really know myself, I just always disliked working with it. Am I being a fussy little fuzz ball, or does anyone else have this same view t