Open adamcharnock opened 6 days ago
I would love the input of both @nitsujri and @PetrDlouhy on this.
@nitsujri - I know this isn't precisely what you asked for, but what are your thoughts?
@PetrDlouhy - How comfortable would be feel about deploying this kind of change (once stable) into your production environment?
All tests now passing 🎉🎉🎉
I've had a go at this this morning, and you can see the the core changes here.
Most of the lines changed are tests.
Notes:
my_leg.amount
is still available as a property on the Django model. It is now always a positive value.amount
argument when creating a Leg, a deprication warning will be shown.amount_legacy
(I.e. debits are negative) to the LegView, so it is still available atmy_leg.view.amount_legacy
Remaining Tasks
Follow-up work
I'll do this next in another PR