sc_counts() in game_views.py updates CentreCount objects and can then raise an error while processing the death_form.
I'm thinking that we may be able to avoid this using transactions - start a transaction before making any changes, and (re-)raise any ValidationError exceptions so that the transaction gets rolled back.
sc_counts() in game_views.py updates CentreCount objects and can then raise an error while processing the death_form. I'm thinking that we may be able to avoid this using transactions - start a transaction before making any changes, and (re-)raise any ValidationError exceptions so that the transaction gets rolled back.