Re: Form Validation in Admin

2010-01-12 Thread Sasuke
Sent: Monday, January 11, 2010 9:27 PM Subject: Re: Form Validation in Admin On Jan 11, 3:24 am, "Sasuke" <zhouj...@gmail.com> wrote: Hi all, I'm using the form's clean() method to do validation for models in admin. The validation we need to do is to make sure there are no more t

Re: Form Validation in Admin

2010-01-11 Thread Daniel Roseman
On Jan 11, 3:24 am, "Sasuke" wrote: > Hi all, > I'm using the form's clean() method to do validation for models in admin. The > validation we need to do is to make sure there are no more than a certain > number of items totally submitted. So I calculate the total number of

Form Validation in Admin

2010-01-10 Thread Sasuke
Hi all, I'm using the form's clean() method to do validation for models in admin. The validation we need to do is to make sure there are no more than a certain number of items totally submitted. So I calculate the total number of items in the clean() method and check whether it is in the given

Re: Form validation in Admin Panel

2009-04-13 Thread eli
On 13 Kwi, 21:10, Alex Gaynor wrote: > Provide a custom form to the ModelAdmin using the form > option:http://docs.djangoproject.com/en/dev/ref/contrib/admin/#form > > Alex > Oh, it's so simple.. :-) Thank You Alex regards.

Re: Form validation in Admin Panel

2009-04-13 Thread Alex Gaynor
On Mon, Apr 13, 2009 at 2:52 PM, eli wrote: > > Hi, > > How can I to validate data from form in Django Admin Panel? (like: > clena_fieldname in form.ModelForm) ? > > regards. > > > Provide a custom form to the ModelAdmin using the form option:

Form validation in Admin Panel

2009-04-13 Thread eli
Hi, How can I to validate data from form in Django Admin Panel? (like: clena_fieldname in form.ModelForm) ? regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send