custom form validation in newforms-admin

2008-06-05 Thread Mackenzie Kearl
I am using newforms admin and need to be able to have a validation check against multiple fields on the form. I was reading that all you need to do is to go form_change = MyCustomForm() from within your subclass of admin.ModelAdmin however it seems like this has changed since the post that I re

Re: Partial Validation in newforms

2007-11-28 Thread Jonathan Buchanan
On Nov 28, 2007 7:44 AM, PlanarPlatypus <[EMAIL PROTECTED]> wrote: > > On Nov 28, 2:10 am, Thejaswi Puthraya <[EMAIL PROTECTED]> > wrote: > > On Nov 27, 8:32 pm, PlanarPlatypus <[EMAIL PROTECTED]> > > wrote: > > > > > Does anyone know of a clean way to do partial validation in djangos > > > newfor

Re: Partial Validation in newforms

2007-11-28 Thread PlanarPlatypus
On Nov 28, 2:10 am, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > On Nov 27, 8:32 pm, PlanarPlatypus <[EMAIL PROTECTED]> > wrote: > > > Does anyone know of a clean way to do partial validation in djangos > > newforms. I am basically after a cleaner way to do something like the > > code below. >

Re: Partial Validation in newforms

2007-11-27 Thread Thejaswi Puthraya
On Nov 27, 8:32 pm, PlanarPlatypus <[EMAIL PROTECTED]> wrote: > Does anyone know of a clean way to do partial validation in djangos > newforms. I am basically after a cleaner way to do something like the > code below. A clarification...what do you mean by partial validation? Does it mean that yo

Partial Validation in newforms

2007-11-27 Thread PlanarPlatypus
Does anyone know of a clean way to do partial validation in djangos newforms. I am basically after a cleaner way to do something like the code below. form = form(request.POST, error_class=SpanErrorList) # Hacky but as of this moment newforms doesn't support partial # validation or getting the

validation in newforms

2007-01-26 Thread django_user
I am using newforms for user registration module. How do I check if username isAlphaNumeric ? Where do I use validator_list? class UserProfileForm(forms.Form): username = forms.CharField(max_length=30) password1 = forms.CharField(widget=PasswordInput) ... ... .. ... ... . ...