ModelForm is really just a convenient subclass of Form, so if you want additional validation methods you just have to implement/override the clean methods like you would with a normal form. The ease of validation that newforms allows is actually one of the main reasons I prefer Django over other frameworks i've tried.
- Andrew Ingram Torsten Bronger wrote: > Hallöchen! > > While ModelForm.is_valid() finds field validation errors, it cannot > catch errors in uniqueness or referential integrity as far as I can > see. Thus, I have to check them in my view.py code separately > before calling save(). > > If such errors are detected, I'd like to display them the same way > as the other validation errors are displayed. Is it possible to > inject additional errors into a form? Or are there better ways to > detect and report "inter-form" errors? > > Tschö, > Torsten. > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---