On Oct 14, 10:42 am, Kenneth Gonsalves <law...@thenilgiris.com> wrote:
> On Wednesday 14 Oct 2009 3:08:00 pm robin nanola wrote:
>
> > try reading this
> >http://www.cotellese.net/2007/12/11/adding-model-field-validation-to-...
> >ango-admin-page/
>
> I do not think validators exist in django now - that blog post was done in
> 2007.

That's correct, the code in that post will not work.

The way to do it now is to define a custom form and do the validation
there, then set the modeladmin class for your model to use that custom
form.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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