2008/5/1 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Thanks Felix. I did use the Form.clean() for my validation accross > multiple fields. There is an open ticket for the non_field_errors() > not being called withing the change_form.html template. > http://code.djangoproject.com/ticket/6809
I need to validate a form in my admin to make some fields sum exactly as another field (the total). does anyone have a snippet or an example? I want to do that: class SchedaBilancioGenere(models.Model): n_occupati = models.PositiveIntegerField(blank=True, null=True) n_occupati_donne = models.PositiveIntegerField(blank=True, null=True) n_occupati_uomini = models.PositiveIntegerField(blank=True, null=True) and n_occupati = n_occupati_donne + n_occupati_uomini is it possible ? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambiente: se non ti è necessario, non stampare questa mail --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---