-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
save state using transactions with balance
- Loading branch information
1 parent
9edb502
commit 3c28eca
Showing
4 changed files
with
81 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Current State | ||
|
||
See [[2024-03-06]] for previous log. | ||
|
||
Deployed to production at [negligentoctopus.pythonanywhere.com](negligentoctopus.pythonanywhere.com). | ||
|
||
Project has been fully configured from cookiecutter-django using MySQL. As development environment we are remotely accesing a linux system and using tmux and nvim, with the relevant plugins for code review. | ||
|
||
Core models are being defined and added to the django-admin interface to be tested. | ||
|
||
# Today | ||
|
||
Define automatic balance tracking in account. | ||
|
||
## Work Log | ||
__InProgress__ | ||
* Use django's signal post-save to update accounts balance. | ||
|
||
__ToDo__ | ||
* Migrate. | ||
* Test on admin. | ||
|
||
__Done__ | ||
|
||
__Discarded__ | ||
~~Define balance property, as well as relevant new db fields - assuming fields defined in Transaction. Define fields and functions in Transaction. Check FieldTracker in model\_utils.~~ This is overcomplicated. Strategy changed to above. | ||
|
||
# To Do | ||
[[Future Work]] Consider that it would be a high usability information to have current balance on each transaction. One possibility would be same as balance in account (We could send a event to account and use it as a manager). Another way would be doing it lazily from our current balance backwards (but this assumes end of timeframe is last transaction - which might not be true). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters