aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/models.py
AgeCommit message (Collapse)AuthorFilesLines
2020-05-24Populate the demo project with defaults. (#616)Daniel Atwood1-0/+44
2020-04-29Feature/currencies (#541)dark0dave1-4/+17
Now each project can have a currency, default to None. Each bill can use a different currency, and a conversion to project default currency is done on settle. Fix #512
2020-04-26Fix string representation of bills (#584)zorun1-1/+1
Currently the string representation of a Bill is: "<amount> for <description>" It is used in the History Page to describe changes that were applied to Bills, for instance: Bill "42.0 for Test" renamed to "Another Test" This is inconsistent, not easy to read, and the "for" in the middle is not translatable. To solve this issue, simply switch the string representation of a bill to its description. Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2020-04-24Remove obsolete python code (<3.6). (#571)Rémy HUBSCHER1-7/+6
2020-04-21Add isort support. (#561)Rémy HUBSCHER1-14/+10
2020-04-20Add Project History Page (#553)Andrew Dickinson1-2/+72
Co-Authored-By: Glandos <bugs-github@antipoul.fr> All project activity can be tracked, using SQLAlchemy-continuum. IP addresses can optionally be recorded.
2020-02-17Use SQL statement for summing up weightsDavidRThrashJr1-2/+11
* Update models: Bill.pay_each() * Import sql func * reformatted using black * Added ModelsTestCase.test_bill_pay_each() in order to test the SQL query change within pay_each. Had to add Project.ProjectQuery.get_by_name() for the test.
2020-02-09Initial montly expenses (#526)Edwin Smulders1-0/+12
2019-10-14Use black to refomat the files.Alexis M1-78/+108
2019-10-03feat: Optional field 'external link' in bill form.Leo Mouyna1-0/+2
An optional field has been added to the bill form to add a link to a real bill. A new action button allow user to see this bill. Breaking change with Bill model update for database, a migration is needed. See issue #429.
2019-09-24Fix #434 Use the debts lib to solve settlements.Alexis M1-40/+9
2019-07-27Remove Added on column from bill list.Brice Maron1-1/+1
to avoid breaking anyone's workflow, i've instead use a tooltip to display the creation date. fix #418
2019-01-03Do not allow negative weights on users (Fixes #362) (#366)Alexis Metaireau1-2/+3
2018-12-26Resolve "Update API project list" (#409)Byron Ullauri1-10/+38
* refactoring models _to_serialize property * updated project api members list * addressing flake8: line too long
2018-12-25Add bill.creation_date field (#327)Lucas Verney1-1/+4
2018-02-07Move member stats computation to a dedicated methodJocelyn Delalande1-0/+20
2017-12-22Remove API password (#290)JocelynDelalande1-1/+1
* Remove the password from API GET responses While keeping it for POST/PUT. fix #289 * Add a test to check password change via API
2017-12-15Use token based auth in invitation e-mails (#280)0livd1-7/+17
* Use token based auth in invitation e-mails Invitation e-mails no longer contain the clear text project password * Skip invite page after project creation - Replace ``The project identifier is demo, remember it!`` by ``Invite other people to join this project!`` (linking to the invite page) - Encourage users to share the project password via other communication means in the reminder email
2017-10-26Use token based auth to reset passwords (#269)0livd1-1/+27
Send a mail containing a password reset token link instead of sending a clear text password. Ref #232
2017-08-21Add a statistics tab (#257)0livd1-0/+10
2017-07-07Absolute imports & some other improvements (#243)Alexis Metaireau1-0/+308
* Use absolute imports and rename package to ihatemoney * Add a ihatemoney command * Factorize application creation logic * Refactor the tests * Update the wsgi.py module with the new create_app() function * Fix some styling thanks to Flake8. * Automate Flake8 check in the CI.