Check-in: Fix N+1 query issue identified by sentry

This commit is contained in:
Raphael Michel
2023-08-28 16:54:09 +02:00
parent 5d90a42acf
commit 5b819b76f0
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ def _redeem(token_client, org, clist, p, body=None, query=''):
def test_query_load(token_client, organizer, clist, event, order, django_assert_max_num_queries):
with scopes_disabled():
p = order.positions.first()
with django_assert_max_num_queries(30):
with django_assert_max_num_queries(29):
resp = _redeem(token_client, organizer, clist, p.secret)
assert resp.status_code == 201
assert resp.data['status'] == 'ok'