On Mon, 2008-08-25 at 19:57 -0400, Michael Hrivnak wrote: > That is neither a direct nor indirect replacement for model-level validation. > > Many applications receive input from sources other than forms. Validation at > the form and model level are both valuable, but for different reasons.
It is an indirect way to achieve something very close. Nothing requires that the data you pass to a ModelForm class has to come from an HTML form submission, so the restriction you mention doesn't actually exist. :-) So you can create a ModelForm, pass in a model instance, check is_valid() and then carry on if things pass. Is it a bit of a hack? Yes. Will it suffice for the time being until model-validation is available? Also yes, since we don't have a choice. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---