try reading this
http://www.cotellese.net/2007/12/11/adding-model-field-validation-to-the-django-admin-page/

On Wed, Oct 14, 2009 at 5:34 PM, danin <gawade.ni...@gmail.com> wrote:

>
> hi guys,
>    I am new to Django (started 2 weeks back). right now i am
> designing one application having model-
>  class info(models.Model):
>       name=models.CharField(max_length=100)
>       dob=models.DateField()
>       dod=models.DateField()
>       address=models.CharField(max_length=250)
>       pin=IntegerField(msx_length=10)
>
> I am entering data in database via admin CRUD. but while entering the
> data i want to perform some validations like :
>  1. No negative number in pin field.
>  2. dob<dod
>
> can anyone please guide me in this. i am not able to fiure out where
> to performed this validation and how.
>
>
> Thanks.
> Danin
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to