aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/web.py')
-rw-r--r--ihatemoney/web.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ihatemoney/web.py b/ihatemoney/web.py
index d45190c..1b80ab6 100644
--- a/ihatemoney/web.py
+++ b/ihatemoney/web.py
@@ -586,7 +586,11 @@ def list_bills():
if "last_selected_payer" in session:
bill_form.payer.data = session["last_selected_payer"]
# Preload the "owers" relationship for all bills
- bills = g.project.get_bills().options(orm.subqueryload(Bill.owers))
+ bills = (
+ g.project.get_bills()
+ .options(orm.subqueryload(Bill.owers))
+ .paginate(per_page=100, error_out=True)
+ )
return render_template(
"list_bills.html",