cache_helpers: Remove select_related call for Client.

There are no foreign keys for Client and so there are
no related objects to select using select_related.
This commit is contained in:
Sahil Batra 2023-07-12 12:57:10 +05:30 committed by Tim Abbott
parent a871d7d90e
commit 290973585c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ cache_fillers: Dict[
] = {
"user": (get_users, user_cache_items, 3600 * 24 * 7, 10000),
"client": (
lambda: Client.objects.select_related().all(),
lambda: Client.objects.all(),
client_cache_items,
3600 * 24 * 7,
10000,