Friday, October 24, 2014

Re: how to save in inline form total sum

Hello,
 
ModelB in inline
choice               men           women
option1               6                   4
option2               1                   3
option3               2                  1

i need save in other field total this sum for example men = 9  and women total is = 8

Right, it seems to me that the "total"  need to be on a separate model from the individual counts, maybe on ModelA?

Collin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b74cd978-1158-4076-9b33-ec38ec25ebbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment