On Fri, 2008-03-07 at 14:13 -0800, Hugh Bien wrote: > For the website I'm writing, I've just been overriding the > 'validate()' method on models but that's still experimental: > > http://www.djangoproject.com/documentation/models/validation/ > > Is there a built-in validation system for Django models?
There are validators on individual fields. There is also work in-progress to do proper model-aware validation, as we are calling it (the validators are aware of "self", so they can involve other fields as well). Using validate() at the moment would be unfortunate. It's incomplete and isn't called as part of any routine saving path. You can maybe get by with it for now, but the (pre-1.0) future is still coming. Malcolm -- A clear conscience is usually the sign of a bad memory. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

