Skip to content

Commit

Permalink
[#4725] Increase serialized_project performance
Browse files Browse the repository at this point in the history
- Add fields that should not be deffered
  • Loading branch information
zuhdil committed Dec 10, 2021
1 parent 7b70a65 commit 6abcf43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions akvo/rest/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
def serialized_project(project_id):
project = Project.objects.only(
'id', 'title', 'subtitle',
'current_image',
'project_plan_summary',
'primary_location__id',
'primary_location__latitude',
'primary_location__longitude',
'primary_organisation__id',
'primary_organisation__name',
'primary_organisation__long_name'
Expand Down

0 comments on commit 6abcf43

Please # to comment.