Skip to content

Commit

Permalink
fix(source melody search): remove error from "source" queryset
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller committed Oct 2, 2024
1 parent 4532cfd commit 0795020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/cantusdb_project/main_app/views/chant.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,9 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# if searching in a specific source, pass the source into context
if self.request.GET.get("source"):
context["source"] = Source.objects.get(
id=self.request.GET.get("source")
).select_related("holding_institution", "feast", "service", "genre")
context["source"] = Source.objects.select_related(
"holding_institution"
).get(id=self.request.GET.get("source"))
return context


Expand Down

0 comments on commit 0795020

Please sign in to comment.