Validate inlines based on another inlines in Django Admin -


i have game object linked periodscore, object score each team in each quarter, , playerboxscore object stats of player in given game.

i want make sure sum of points (for each team) in periodscore same sum of points of playerboxscores (in each team), , raise validateerror (prevent them saving) if they're not equal.

i know how sum them individually creating baseinlineformset each inline don't know how or compare them each other.

thanks in advance


Comments

Popular posts from this blog

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -

bash - Performing variable substitution in a string -