Thank you! It helped me. I must define the Model.clean() method.
Renne Rocha renne.ro...@gmail.com http://rennerocha.webfactional.com/ On Wed, Aug 18, 2010 at 9:11 AM, Kenneth Gonsalves <law...@au-kbc.org> wrote: > On Wed, 2010-08-18 at 09:02 -0300, Renne Rocha wrote: >> Is it possible to do this? Or the only way to validate the >> relationship between two fields is with form validation? >> >> > > this may help: > http://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddo#id1 > -- > regards > Kenneth Gonsalves > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.