A post_delete receiver replaces the file deletes in each view, so the files
also go when an attachment is deleted through a cascade from the Django admin
or the organizer's account, and are only removed once the row is.
Deleting a split event failed with a server error as soon as it had an
expense or a payment, from the event page and from the API alike
(DELETE /api/splits/events/{id}/). Deleting the event cascades to its
participants, and the expenses, shares and payments pointing at them
used on_delete=PROTECT, which refuses even when those rows are being
deleted with the same event. Only empty events could be removed, and an
admin couldn't delete a user who organized one.
- The participant foreign keys on expenses, shares and payments now use
RESTRICT. A participant with expenses or payments still can't be
deleted on their own (the people screen and the API already check
this first), but they now go along with their event. The migration
only changes Django's state; the database is untouched.
- Deleting an event also removes its attachments' files, as deleting an
expense or a payment already does, so receipts aren't left behind in
the private media folder.
Django's ' escaping is decoded by the browser before hyperscript parses
a _="..." attribute, so a quote in a currency or account name closed the
string and the rest ran as hyperscript. Names now live in plain data-*
attributes and are read with @data-*. Spaces in currency prefixes and
suffixes are kept.
Refs GHSA-fh52-f8r4-hv6g
The old wording ("sharing grants read access only") read as if a shared
account's transactions were read-only, which keeps producing BOLA reports
against intended behaviour.
Rule selection went through SharedObjectManager, which includes every
user's public rules, so a public rule ran against other users'
transactions. Public rules stay readable by everyone; shared rules keep
running for the users they are shared with.
Fixes GHSA-hjfv-p3g6-mwch
Currency, account and category names were rendered into inline <script>
blocks with |safe, so a name containing </script> or a quote ran as script
for every user whose net worth or insights page included it.
Fixes GHSA-fh52-f8r4-hv6g
Add /api/splits/ endpoints for events, participants, expenses and payments,
plus an event summary (balances and settle-up) and leave action. They share
the web UI's access rules and share calculation. MCP reaches them through
search_api/call_api, and its instructions now point to them.
Track expenses shared with other people (trips, flats, dinners) and settle
up with the fewest payments.
- Events with WYGIWYH users and people without an account, who join through
a share link and pick a password on first sign-in
- Equal, exact, percentage and share-weight splits that always add up
- Balances, a minimal settle-up plan and an activity feed showing what each
item means for you
- Link items to your own transactions; recording a payment marks planned
ones as paid
- Share menu: printable PDF report and PNG images of the summary, settle-up
and balances (adds modern-screenshot)
- Only the two people involved or the organizer can record a payment;
members can leave events they don't organize
Saved filter presets have to be picked from the menu every time a page
opens, so a view someone always wants, like hiding projected
transactions (#521), takes a few clicks on every visit or a bookmarked
URL.
A preset can now be set as the default from the presets menu, with the
star next to its name. All transactions and the Monthly overview then
open with it applied, relative dates moved to today, whenever their
URL has no filters of its own:
- `FilterPreset.is_default`, with a constraint allowing one default per
user. Starring another preset moves the default to it, and starring
the default again turns it off.
- Filters in the URL, like `/transactions/?is_paid=1`, take precedence
over the default, and Clear still empties the filter for the visit.
- The star stays visible on the default preset and shows on hover for
the others, like the delete button.
- Building a filter from a preset moves into
`TransactionsFilter.from_preset`, shared by applying a preset and
opening a page with the default one.
The export and restore forms now sit on the Export and Restore page
instead of an offcanvas. Exporting shows a progress line and a toast
when the download starts; restoring splits ZIP and CSV uploads into
tabs and shows errors in the form.
- An empty export warns instead of downloading the message as a file
- Export errors show a message instead of a stuck spinner
- The download link is kept long enough for Safari to save the file
- Non-superusers get a 403 instead of a redirect loop with the login
- The asset classes CSV can be uploaded on its own
- Drop the export form's unknown investment_classes layout field
Restore looked categories, tags and entities up through the admin's
filtered manager, so other users' transactions moved to the admin's
categories and lost their tags. They are now matched to the row's
owner (then to ones that owner can see) and created for that owner.
Export also read tags and entities through that manager and left other
users' private ones out.
Recurring transactions and installment plans now export account_owner,
which restore already read but never received.
Transaction exports ran a few queries per row and paged prefetched rows
with OFFSET, so large histories timed out. They now load relations up
front and read in cursor chunks: 200k transactions export in ~43s with
~200 queries (10k took 34s and ~21k queries before).
Fixes#691Fixes#692
Override django-oauth-toolkit's unstyled authorize template with the login
page's layout. It says who's signed in, what the app will be able to do, and
where the answer is sent, so a look-alike app with someone else's redirect
is easier to spot.
Editing a recurring transaction to end earlier kept its unpaid occurrences
after the new end date, counting them in projected balances, and left
last_generated_date past it. Remove them (both sides of a generated transfer;
a partner linked from elsewhere is unlinked and kept) and move the bookmark
back to the last remaining occurrence. Paid occurrences stay.
Also pin ENABLE_SOFT_DELETE=False on the test that asserts hard deletes, so a
.env that turns soft delete on no longer fails it.
Off unless MCP_ENABLED=true. Runs inside the web app (stateless Streamable
HTTP, JSON responses), so no extra container or supervisord program.
- Tools run the REST views in-process as the caller, so permissions,
sharing, validation and transaction rules stay the API's.
- 11 curated tools with compact output, plus search_api/call_api to reach
every other API endpoint from the OpenAPI schema.
- OAuth protected-resource metadata (RFC 9728) and a WWW-Authenticate hint
on 401s, so MCP clients find the existing OAuth server and DCR.
- GET /api/transactions/summary/: totals per currency and type, optionally
grouped by category, tag, entity, account or month.
API changes found while testing it:
- Writes no longer need Django model permissions, which nothing granted;
access now matches the web UI (signed-in user, scoped querysets, owner-only
edits of shared objects). API tokens and OAuth apps can now write for
regular users.
- Account group owner is read-only; it could be set to another user.
- Reject negative installment, recurring, DCA and exchange-rate amounts, a
zero recurrence interval, and performance on non-investment accounts.
- Accounts can be archived; group_id/exchange_currency_id are optional;
category accepts null; currency prefix/suffix keep their spaces.
- Transactions filter by tags and entities.
- OpenAPI: separate request schemas (COMPONENT_SPLIT_REQUEST) and real
descriptions for the viewsets and DCA chart actions.