You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I need to validate a form in the admin area checking if the SUM of 'price' field in inlines match whit 'amount' field in the main form.
What is best way?
ludovic coues
unread,
Feb 5, 2017, 9:10:53 AM2/5/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
I would hide or make the amount field read-only and set it with a
pre_save signals.
This way, you don't have to worry about it and you get the right value
every time instead of getting an error every now and then.