Skip to content

Commit

Permalink
fix(chant detail): select_related on project relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller committed Aug 28, 2024
1 parent 2366eec commit 8691030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/cantusdb_project/main_app/views/chant.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class ChantDetailView(DetailView):
def get_queryset(self) -> QuerySet:
qs = super().get_queryset()
return qs.select_related(
"source__holding_institution", "service", "genre", "feast"
"source__holding_institution", "service", "genre", "feast", "project"
)

def get_context_data(self, **kwargs):
Expand Down

0 comments on commit 8691030

Please sign in to comment.